@gyramais/gyra-design 0.2.48 → 0.2.49

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.
Files changed (87) hide show
  1. package/dist/components/Button/Button.d.ts +7 -0
  2. package/dist/components/Button/index.js.map +1 -1
  3. package/dist/components/Card/Card.d.ts +1 -7
  4. package/dist/components/Card/index.js +6 -6
  5. package/dist/components/Card/index.js.map +1 -1
  6. package/dist/components/ContextMenu/index.js +1 -1
  7. package/dist/components/ContextMenu/index.js.map +1 -1
  8. package/dist/components/DropdownMenu/index.js +1 -1
  9. package/dist/components/DropdownMenu/index.js.map +1 -1
  10. package/dist/components/Empty/Empty.d.ts +1 -18
  11. package/dist/components/Empty/index.js +40 -2
  12. package/dist/components/Empty/index.js.map +1 -1
  13. package/dist/components/Filter/index.js.map +1 -1
  14. package/dist/components/FloatingCard/index.js +7 -7
  15. package/dist/components/FloatingCard/index.js.map +1 -1
  16. package/dist/components/List/index.js +40 -2
  17. package/dist/components/List/index.js.map +1 -1
  18. package/dist/components/Modal/index.js.map +1 -1
  19. package/dist/components/MultiSelectPicker/index.js +1 -1
  20. package/dist/components/MultiSelectPicker/index.js.map +1 -1
  21. package/dist/components/OperatorPicker/index.js +1 -1
  22. package/dist/components/OperatorPicker/index.js.map +1 -1
  23. package/dist/components/PickerPopover/index.js +1 -1
  24. package/dist/components/PickerPopover/index.js.map +1 -1
  25. package/dist/components/Popover/Popover.d.ts +3 -1
  26. package/dist/components/Popover/index.js +1 -1
  27. package/dist/components/Popover/index.js.map +1 -1
  28. package/dist/components/Rail/Rail.d.ts +59 -0
  29. package/dist/components/Rail/RailGate.d.ts +22 -0
  30. package/dist/components/Rail/RailMini.d.ts +25 -0
  31. package/dist/components/Rail/RailStep.d.ts +45 -0
  32. package/dist/components/Rail/index.d.ts +6 -0
  33. package/dist/components/Rail/index.js +45 -0
  34. package/dist/components/Rail/index.js.map +1 -0
  35. package/dist/components/Rail/labels.d.ts +25 -0
  36. package/dist/components/Rail/types.d.ts +75 -0
  37. package/dist/components/RuleSearchPicker/index.js +1 -1
  38. package/dist/components/RuleSearchPicker/index.js.map +1 -1
  39. package/dist/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
  40. package/dist/components/SegmentedPicker/index.js +2 -2
  41. package/dist/components/SegmentedPicker/index.js.map +1 -1
  42. package/dist/components/Switch/Switch.d.ts +7 -1
  43. package/dist/components/Switch/index.js +1 -1
  44. package/dist/components/Switch/index.js.map +1 -1
  45. package/dist/components/Table/Table.d.ts +1 -14
  46. package/dist/components/Table/index.js +40 -2
  47. package/dist/components/Table/index.js.map +1 -1
  48. package/dist/emails/balance-sheet-finalized/components/Button/Button.d.ts +7 -0
  49. package/dist/emails/balance-sheet-finalized/components/Card/Card.d.ts +1 -7
  50. package/dist/emails/balance-sheet-finalized/components/Empty/Empty.d.ts +1 -18
  51. package/dist/emails/balance-sheet-finalized/components/Popover/Popover.d.ts +3 -1
  52. package/dist/emails/balance-sheet-finalized/components/Rail/Rail.d.ts +59 -0
  53. package/dist/emails/balance-sheet-finalized/components/Rail/RailGate.d.ts +22 -0
  54. package/dist/emails/balance-sheet-finalized/components/Rail/RailMini.d.ts +25 -0
  55. package/dist/emails/balance-sheet-finalized/components/Rail/RailStep.d.ts +45 -0
  56. package/dist/emails/balance-sheet-finalized/components/Rail/index.d.ts +6 -0
  57. package/dist/emails/balance-sheet-finalized/components/Rail/labels.d.ts +25 -0
  58. package/dist/emails/balance-sheet-finalized/components/Rail/types.d.ts +75 -0
  59. package/dist/emails/balance-sheet-finalized/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
  60. package/dist/emails/balance-sheet-finalized/components/Switch/Switch.d.ts +7 -1
  61. package/dist/emails/balance-sheet-finalized/components/Table/Table.d.ts +1 -14
  62. package/dist/emails/balance-sheet-finalized/index.d.ts +1 -1
  63. package/dist/emails/email/components/Button/Button.d.ts +7 -0
  64. package/dist/emails/email/components/Card/Card.d.ts +1 -7
  65. package/dist/emails/email/components/Empty/Empty.d.ts +1 -18
  66. package/dist/emails/email/components/Popover/Popover.d.ts +3 -1
  67. package/dist/emails/email/components/Rail/Rail.d.ts +59 -0
  68. package/dist/emails/email/components/Rail/RailGate.d.ts +22 -0
  69. package/dist/emails/email/components/Rail/RailMini.d.ts +25 -0
  70. package/dist/emails/email/components/Rail/RailStep.d.ts +45 -0
  71. package/dist/emails/email/components/Rail/index.d.ts +6 -0
  72. package/dist/emails/email/components/Rail/labels.d.ts +25 -0
  73. package/dist/emails/email/components/Rail/types.d.ts +75 -0
  74. package/dist/emails/email/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
  75. package/dist/emails/email/components/Switch/Switch.d.ts +7 -1
  76. package/dist/emails/email/components/Table/Table.d.ts +1 -14
  77. package/dist/emails/email/index.d.ts +1 -1
  78. package/dist/index.css +859 -372
  79. package/package.json +1 -1
  80. package/dist/components/Skeleton/Skeleton.d.ts +0 -50
  81. package/dist/components/Skeleton/index.d.ts +0 -1
  82. package/dist/components/Skeleton/index.js +0 -7
  83. package/dist/components/Skeleton/index.js.map +0 -1
  84. package/dist/emails/balance-sheet-finalized/components/Skeleton/Skeleton.d.ts +0 -50
  85. package/dist/emails/balance-sheet-finalized/components/Skeleton/index.d.ts +0 -1
  86. package/dist/emails/email/components/Skeleton/Skeleton.d.ts +0 -50
  87. package/dist/emails/email/components/Skeleton/index.d.ts +0 -1
@@ -41,5 +41,5 @@ object-assign
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- function(e,t){const n=Hn(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some(e=>void 0===e)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:function(e){return Yn[0]=e,gn(Yn)},keyframes:function(){var e=Dn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}}),Jn=d(Xn),Zn=d(k),Qn=d(ue),er=d(ce);const tr=["values","unit","step"];function nr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ae(e,tr),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>w({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function c(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function l(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return w({keys:a,values:i,up:s,down:c,between:l,only:function(e){return a.indexOf(e)+1<a.length?l(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?c(a[t]):l(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const rr={borderRadius:4},or="production"!==process.env.NODE_ENV?Y.oneOfType([Y.number,Y.string,Y.object,Y.array]):{};function ir(e,t){return t?S(e,t,{clone:!1}):e}const ar={xs:0,sm:600,md:900,lg:1200,xl:1536},sr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ar[e]}px)`};function cr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sr;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||sr;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||ar).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function lr(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ur(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function fr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ur(e,n)||r,t&&(o=t(o,r,e)),o}function dr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ur(e.theme,r)||{};return cr(e,i,e=>{let r=fr(a,o,e);return e===r&&"string"==typeof e&&(r=fr(a,o,`${t}${"default"===e?"":le(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:or}:{},i.filterProps=[t],i}const pr={m:"margin",p:"padding"},mr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!hr[e])return[e];e=hr[e]}const[t,n]=e.split(""),r=pr[t],o=mr[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),gr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],br=[...gr,...vr];function wr(e,t,n,r){var o;const i=null!=(o=ur(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function xr(e){return wr(e,"spacing",8,"spacing")}function Er(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Sr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Er(t,n),e),{})}(yr(n),r);return cr(e,e[n],o)}function Or(e,t){const n=xr(e.theme);return Object.keys(e).map(r=>Sr(e,t,r,n)).reduce(ir,{})}function kr(e){return Or(e,gr)}function Cr(e){return Or(e,vr)}function $r(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?ir(n,t[r](e)):n,{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function _r(e){return"number"!=typeof e?e:`${e}px solid`}function Pr(e,t){return dr({prop:e,themeKey:"borders",transform:t})}kr.propTypes="production"!==process.env.NODE_ENV?gr.reduce((e,t)=>(e[t]=or,e),{}):{},kr.filterProps=gr,Cr.propTypes="production"!==process.env.NODE_ENV?vr.reduce((e,t)=>(e[t]=or,e),{}):{},Cr.filterProps=vr,"production"===process.env.NODE_ENV||br.reduce((e,t)=>(e[t]=or,e),{});const Nr=Pr("border",_r),Ar=Pr("borderTop",_r),Tr=Pr("borderRight",_r),Rr=Pr("borderBottom",_r),Mr=Pr("borderLeft",_r),jr=Pr("borderColor"),Ir=Pr("borderTopColor"),Dr=Pr("borderRightColor"),zr=Pr("borderBottomColor"),Lr=Pr("borderLeftColor"),Fr=Pr("outline",_r),Vr=Pr("outlineColor"),Wr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=wr(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Er(t,e)});return cr(e,e.borderRadius,n)}return null};Wr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:or}:{},Wr.filterProps=["borderRadius"],$r(Nr,Ar,Tr,Rr,Mr,jr,Ir,Dr,zr,Lr,Wr,Fr,Vr);const Br=e=>{if(void 0!==e.gap&&null!==e.gap){const t=wr(e.theme,"spacing",8,"gap"),n=e=>({gap:Er(t,e)});return cr(e,e.gap,n)}return null};Br.propTypes="production"!==process.env.NODE_ENV?{gap:or}:{},Br.filterProps=["gap"];const Ur=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=wr(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Er(t,e)});return cr(e,e.columnGap,n)}return null};Ur.propTypes="production"!==process.env.NODE_ENV?{columnGap:or}:{},Ur.filterProps=["columnGap"];const Hr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=wr(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Er(t,e)});return cr(e,e.rowGap,n)}return null};Hr.propTypes="production"!==process.env.NODE_ENV?{rowGap:or}:{},Hr.filterProps=["rowGap"];function Gr(e,t){return"grey"===t?t:e}$r(Br,Ur,Hr,dr({prop:"gridColumn"}),dr({prop:"gridRow"}),dr({prop:"gridAutoFlow"}),dr({prop:"gridAutoColumns"}),dr({prop:"gridAutoRows"}),dr({prop:"gridTemplateColumns"}),dr({prop:"gridTemplateRows"}),dr({prop:"gridTemplateAreas"}),dr({prop:"gridArea"}));function Kr(e){return e<=1&&0!==e?100*e+"%":e}$r(dr({prop:"color",themeKey:"palette",transform:Gr}),dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gr}),dr({prop:"backgroundColor",themeKey:"palette",transform:Gr}));const qr=dr({prop:"width",transform:Kr}),Yr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ar[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Kr(t)}};return cr(e,e.maxWidth,t)}return null};Yr.filterProps=["maxWidth"];const Xr=dr({prop:"minWidth",transform:Kr}),Jr=dr({prop:"height",transform:Kr}),Zr=dr({prop:"maxHeight",transform:Kr}),Qr=dr({prop:"minHeight",transform:Kr});dr({prop:"size",cssProperty:"width",transform:Kr}),dr({prop:"size",cssProperty:"height",transform:Kr});$r(qr,Yr,Xr,Jr,Zr,Qr,dr({prop:"boxSizing"}));const eo={border:{themeKey:"borders",transform:_r},borderTop:{themeKey:"borders",transform:_r},borderRight:{themeKey:"borders",transform:_r},borderBottom:{themeKey:"borders",transform:_r},borderLeft:{themeKey:"borders",transform:_r},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_r},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wr},color:{themeKey:"palette",transform:Gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gr},backgroundColor:{themeKey:"palette",transform:Gr},p:{style:Cr},pt:{style:Cr},pr:{style:Cr},pb:{style:Cr},pl:{style:Cr},px:{style:Cr},py:{style:Cr},padding:{style:Cr},paddingTop:{style:Cr},paddingRight:{style:Cr},paddingBottom:{style:Cr},paddingLeft:{style:Cr},paddingX:{style:Cr},paddingY:{style:Cr},paddingInline:{style:Cr},paddingInlineStart:{style:Cr},paddingInlineEnd:{style:Cr},paddingBlock:{style:Cr},paddingBlockStart:{style:Cr},paddingBlockEnd:{style:Cr},m:{style:kr},mt:{style:kr},mr:{style:kr},mb:{style:kr},ml:{style:kr},mx:{style:kr},my:{style:kr},margin:{style:kr},marginTop:{style:kr},marginRight:{style:kr},marginBottom:{style:kr},marginLeft:{style:kr},marginX:{style:kr},marginY:{style:kr},marginInline:{style:kr},marginInlineStart:{style:kr},marginInlineEnd:{style:kr},marginBlock:{style:kr},marginBlockStart:{style:kr},marginBlockEnd:{style:kr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Br},rowGap:{style:Hr},columnGap:{style:Ur},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Kr},maxWidth:{style:Yr},minWidth:{transform:Kr},height:{transform:Kr},maxHeight:{transform:Kr},minHeight:{transform:Kr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function to(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:c,style:l}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=ur(n,s)||{};if(l)return l(o);return cr(o,t,t=>{let n=fr(u,c,t);return t===n&&"string"==typeof t&&(n=fr(u,c,`${e}${"default"===t?"":le(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:eo;function c(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),c=Object.keys(o);let l=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],c=i,"function"==typeof a?a(c):a);var a,c;if(null!=o)if("object"==typeof o)if(s[n])l=ir(l,e(n,o,i,s));else{const e=cr({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?l=ir(l,e):l[n]=t({sx:o,theme:i,nested:!0})}else l=ir(l,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":lr(c,l)}:lr(c,l)}return Array.isArray(o)?o.map(c):c(o)}}const no=to();function ro(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}no.filterProps=["sx"];const oo=["breakpoints","palette","spacing","shape"];function io(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ae(e,oo),s=nr(n),c=function(e=8){if(e.mui)return e;const t=xr({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" "));return n.mui=!0,n}(o);let l=S({breakpoints:s,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:c,shape:w({},rr,i)},a);return l.applyStyles=ro,l=t.reduce((e,t)=>S(e,t),l),l.unstable_sxConfig=w({},eo,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return no({sx:e,theme:this})},l}var ao=d(Object.freeze({__proto__:null,default:io,private_createBreakpoints:nr,unstable_applyStyles:ro}));const so=["sx"];var co=d(Object.freeze({__proto__:null,default:no,extendSxProp:function(e){const{sx:t}=e,n=Ae(e,so),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:eo;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return x(n)?w({},r,n):r}:w({},r,t),w({},o,{sx:i})},unstable_createStyleFunctionSx:to,unstable_defaultSxConfig:eo})),lo=v;Object.defineProperty(De,"__esModule",{value:!0});var uo=De.default=function(e={}){const{themeId:t,defaultTheme:n=Co,rootShouldForwardProp:r=Oo,slotShouldForwardProp:o=Oo}=e,i=e=>(0,bo.default)((0,fo.default)({},e,{theme:_o((0,fo.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,mo.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:l,skipSx:u,overridesResolver:f=Po($o(c))}=a,d=(0,po.default)(a,Eo),p=s&&s.startsWith("Mui")||c?"components":"custom",m=void 0!==l?l:c&&"Root"!==c&&"root"!==c||!1,h=u||!1;let y;"production"!==process.env.NODE_ENV&&s&&(y=`${s}-${$o(c||"Root")}`);let g=Oo;"Root"===c||"root"===c?g=r:c?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,mo.default)(e,(0,fo.default)({shouldForwardProp:g,label:y},d)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ho.isPlainObject)(e)?r=>{const o=_o({theme:r.theme,defaultTheme:n,themeId:t});return No(e,(0,fo.default)({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,w=(r,...o)=>{let a=b(r);const l=o?o.map(b):[];s&&f&&l.push(e=>{const r=_o((0,fo.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=No(n,(0,fo.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),f(e,i)}),s&&!m&&l.push(e=>{var r;const o=_o((0,fo.default)({},e,{defaultTheme:n,themeId:t}));return No({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,fo.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),h||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=v(a,...l);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${(0,yo.default)(c||"")}`),void 0===t&&(t=`Styled(${(0,go.default)(e)})`),d.displayName=t}return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(w.withConfig=v.withConfig),w}};De.shouldForwardProp=Oo,De.systemDefaultTheme=void 0;var fo=lo((Ie||(Ie=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ze)),ze.exports)),po=lo((Le||(Le=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Fe)),Fe.exports)),mo=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=So(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Jn),ho=Zn,yo=lo(Qn),go=lo(er),vo=lo(ao),bo=lo(co);const wo=["ownerState"],xo=["variants"],Eo=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function So(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(So=function(e){return e?n:t})(e)}function Oo(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function ko(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Co=De.systemDefaultTheme=(0,vo.default)(),$o=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function _o({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Po(e){return e?(t,n)=>n[e]:null}function No(e,t,n){let{ownerState:r}=t,o=(0,po.default)(t,wo);const i="function"==typeof e?e((0,fo.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>No(e,(0,fo.default)({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,po.default)(i,xo);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,fo.default)({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,fo.default)({ownerState:r},o,r)):e.style;t.push(n?ko((0,mo.internal_serializeStyles)(i),n):i)}}),t}return n?ko((0,mo.internal_serializeStyles)(i),n):i}var Ao={},To=d(Z),Ro=d(Ne),Mo=v;Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.alpha=Ko,Ao.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Wo(e),a=Wo(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Uo({type:"rgb",values:s})},Ao.colorChannel=void 0;var jo=Ao.darken=qo;Ao.decomposeColor=Wo,Ao.emphasize=Xo;var Io=Ao.getContrastRatio=function(e,t){const n=Go(e),r=Go(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Ao.getLuminance=Go,Ao.hexToRgb=Vo,Ao.hslToRgb=Ho;var Do=Ao.lighten=Yo;Ao.private_safeAlpha=function(e,t,n){try{return Ko(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Ao.private_safeColorChannel=void 0,Ao.private_safeDarken=function(e,t,n){try{return qo(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Ao.private_safeEmphasize=function(e,t,n){try{return Xo(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Ao.private_safeLighten=function(e,t,n){try{return Yo(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Ao.recomposeColor=Uo,Ao.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Wo(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var zo=Mo(To),Lo=Mo(Ro);function Fo(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,Lo.default)(e,t,n)}function Vo(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function Wo(e){if(e.type)return e;if("#"===e.charAt(0))return Wo(Vo(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,zo.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,zo.default)(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Bo=e=>{const t=Wo(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Ao.colorChannel=Bo;function Uo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ho(e){e=Wo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),Uo({type:s,values:c})}function Go(e){let t="hsl"===(e=Wo(e)).type||"hsla"===e.type?Wo(Ho(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ko(e,t){return e=Wo(e),t=Fo(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Uo(e)}function qo(e,t){if(e=Wo(e),t=Fo(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Uo(e)}function Yo(e,t){if(e=Wo(e),t=Fo(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Uo(e)}function Xo(e,t=.15){return Go(e)>.5?qo(e,t):Yo(e,t)}Ao.private_safeColorChannel=(e,t)=>{try{return Bo(e)}catch(n){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const Jo={black:"#000",white:"#fff"},Zo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Qo="#f3e5f5",ei="#ce93d8",ti="#ba68c8",ni="#ab47bc",ri="#9c27b0",oi="#7b1fa2",ii="#e57373",ai="#ef5350",si="#f44336",ci="#d32f2f",li="#c62828",ui="#ffb74d",fi="#ffa726",di="#ff9800",pi="#f57c00",mi="#e65100",hi="#e3f2fd",yi="#90caf9",gi="#42a5f5",vi="#1976d2",bi="#1565c0",wi="#4fc3f7",xi="#29b6f6",Ei="#03a9f4",Si="#0288d1",Oi="#01579b",ki="#81c784",Ci="#66bb6a",$i="#4caf50",_i="#388e3c",Pi="#2e7d32",Ni="#1b5e20",Ai=["mode","contrastThreshold","tonalOffset"],Ti={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Jo.white,default:Jo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ri={text:{primary:Jo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Jo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Mi(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Do(e.main,o):"dark"===t&&(e.dark=jo(e.main,i)))}function ji(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ae(e,Ai),i=e.primary||function(e="light"){return"dark"===e?{main:yi,light:hi,dark:gi}:{main:vi,light:gi,dark:bi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ei,light:Qo,dark:ni}:{main:ri,light:ti,dark:oi}}(t),s=e.error||function(e="light"){return"dark"===e?{main:si,light:ii,dark:ci}:{main:ci,light:ai,dark:li}}(t),c=e.info||function(e="light"){return"dark"===e?{main:xi,light:wi,dark:Si}:{main:Si,light:Ei,dark:Oi}}(t),l=e.success||function(e="light"){return"dark"===e?{main:Ci,light:ki,dark:_i}:{main:Pi,light:$i,dark:Ni}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:fi,light:ui,dark:pi}:{main:"#ed6c02",light:di,dark:mi}}(t);function f(e){const t=Io(e,Ri.text.primary)>=n?Ri.text.primary:Ti.text.primary;if("production"!==process.env.NODE_ENV){const n=Io(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const d=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=w({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:X(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:X(12,t?` (${t})`:"",JSON.stringify(e.main)));return Mi(e,"light",o,r),Mi(e,"dark",i,r),e.contrastText||(e.contrastText=f(e.main)),e},p={dark:Ri,light:Ti};"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return S(w({common:w({},Jo),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:l,name:"success"}),grey:Zo,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},p[t]),o)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Di={textTransform:"uppercase"},zi='"Roboto", "Helvetica", "Arial", sans-serif';function Li(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=zi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:f}=n,d=Ae(n,Ii);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,m=f||(e=>e/l*p+"rem"),h=(e,t,n,o,i)=>{return w({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===zi?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},y={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Di),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Di),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return S(w({htmlFontSize:l,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},y),d,{clone:!1})}function Fi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Vi=["none",Fi(0,2,1,-1,0,1,1,0,0,1,3,0),Fi(0,3,1,-2,0,2,2,0,0,1,5,0),Fi(0,3,3,-2,0,3,4,0,0,1,8,0),Fi(0,2,4,-1,0,4,5,0,0,1,10,0),Fi(0,3,5,-1,0,5,8,0,0,1,14,0),Fi(0,3,5,-1,0,6,10,0,0,1,18,0),Fi(0,4,5,-2,0,7,10,1,0,2,16,1),Fi(0,5,5,-3,0,8,10,1,0,3,14,2),Fi(0,5,6,-3,0,9,12,1,0,3,16,2),Fi(0,6,6,-3,0,10,14,1,0,4,18,3),Fi(0,6,7,-4,0,11,15,1,0,4,20,3),Fi(0,7,8,-4,0,12,17,2,0,5,22,4),Fi(0,7,8,-4,0,13,19,2,0,5,24,4),Fi(0,7,9,-4,0,14,21,2,0,5,26,4),Fi(0,8,9,-5,0,15,22,2,0,6,28,5),Fi(0,8,10,-5,0,16,24,2,0,6,30,5),Fi(0,8,11,-5,0,17,26,2,0,6,32,5),Fi(0,9,11,-5,0,18,28,2,0,7,34,6),Fi(0,9,12,-6,0,19,29,2,0,7,36,6),Fi(0,10,13,-6,0,20,31,3,0,8,38,7),Fi(0,10,13,-6,0,21,33,3,0,8,40,7),Fi(0,10,14,-6,0,22,35,3,0,8,42,7),Fi(0,11,14,-7,0,23,36,3,0,9,44,8),Fi(0,11,15,-7,0,24,38,3,0,9,46,8)],Wi=["duration","easing","delay"],Bi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ui={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hi(e){return`${Math.round(e)}ms`}function Gi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ki(e){const t=w({},Bi,e.easing),n=w({},Ui,e.duration);return w({getAutoHeightDuration:Gi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r,s=Ae(r,Wi);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),n(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),n(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof r&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Hi(o)} ${i} ${"string"==typeof a?a:Hi(a)}`).join(",")}},e,{easing:t,duration:n})}const qi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Xi=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ae(e,Yi);if(e.vars&&void 0===e.generateCssVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":X(18));const s=ji(r),c=io(e);let l=S(c,{mixins:(u=c.breakpoints,f=n,w({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:Vi.slice(),typography:Li(s,i),transitions:Ki(o),zIndex:w({},qi)});var u,f;if(l=S(l,a),l=t.reduce((e,t)=>S(e,t),l),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(-1!==e.indexOf(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=Pe("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(l.components).forEach(e=>{const n=l.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)})}return l.unstable_sxConfig=w({},eo,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return no({sx:e,theme:this})},l}();const Ji=uo({themeId:"$$material",defaultTheme:Xi,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function Zi(e){return Pe("MuiSvgIcon",e)}!function(e,t,n="Mui"){const r={};t.forEach(t=>{r[t]=Pe(e,t,n)})}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qi=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ea=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}({root:["root","inherit"!==t&&`color${le(t)}`,`fontSize${le(n)}`]},Zi,r)},ta=Ji("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,u,f,d,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}}),na=e.forwardRef(function(t,n){const r=je({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24"}=r,h=Ae(r,Qi),y=e.isValidElement(o)&&"svg"===o.type,g=w({},r,{color:a,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:y}),v={};d||(v.viewBox=m);const b=ea(g);return c(ta,w({as:l,className:Re(b.root,i),focusable:"false",color:f,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:n},v,h,y&&o.props,{ownerState:g,children:[y?o.props.children:o,p?s("title",{children:p}):null]}))});"production"!==process.env.NODE_ENV&&(na.propTypes={children:Y.node,classes:Y.object,className:Y.string,color:Y.oneOfType([Y.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Y.string]),component:Y.elementType,fontSize:Y.oneOfType([Y.oneOf(["inherit","large","medium","small"]),Y.string]),htmlColor:Y.string,inheritViewBox:Y.bool,shapeRendering:Y.string,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),titleAccess:Y.string,viewBox:Y.string}),na.muiName="SvgIcon";const ra={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),$e.configure(e)}};var oa,ia=Object.freeze({__proto__:null,capitalize:le,createChainedFunction:function(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})},createSvgIcon:function(t,n){function r(e,r){return s(na,w({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(r.displayName=`${n}Icon`),r.muiName=na.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,n,r,o,i)=>{const a=r||"<<anonymous>>",s=i||n;return void 0!==e[n]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,n){var r,o;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:fe,ownerWindow:function(e){return fe(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const n=t?w({},t.propTypes):null;return t=>(r,o,i,a,s,...c)=>{const l=s||o,u=null==n?void 0:n[l];if(u){const e=u(r,o,i,a,s,...c);if(e)return e}return void 0===r[o]||r[t]?null:new Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:de,unstable_ClassNameGenerator:ra,unstable_useEnhancedEffect:pe,unstable_useId:function(t){if(void 0!==he){const e=he();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect(()=>{null==n&&(me+=1,r(`mui-${me}`))},[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n),c=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect(()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[o,r,t]);const{current:a}=e.useRef(n);e.useEffect(()=>{i||Object.is(a,n)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))},[JSON.stringify(n)])}return[c,e.useCallback(e=>{i||s(e)},[])]},useEventCallback:function(t){const n=e.useRef(t);return pe(()=>{n.current=t}),e.useRef((...e)=>(0,n.current)(...e)).current},useForkRef:function(...t){return e.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{de(t,e)})},t)},useIsFocusVisible:function(){const t=e.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",xe,!0),t.addEventListener("mousedown",Ee,!0),t.addEventListener("pointerdown",Ee,!0),t.addEventListener("touchstart",Ee,!0),t.addEventListener("visibilitychange",Se,!0))},[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Oe(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(ve=!0,be.start(100,()=>{ve=!1}),n.current=!1,!0)},ref:t}}}),aa=d(ia);var sa=v;Object.defineProperty(y,"__esModule",{value:!0});var ca=y.default=void 0,la=sa((oa||(oa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=aa}(b)),b)),ua=a;function fa(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function da(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function pa(...e){return t=>{let n=!1;const r=e.map(e=>{const r=da(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():da(e[t],null)}}}}function ma(...t){return e.useCallback(pa(...t),t)}function ha(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;r=[...r,o];const c=n=>{const{scope:r,children:o,...c}=n,l=r?.[t]?.[a]||i,u=e.useMemo(()=>c,Object.values(c));return s(l.Provider,{value:u,children:o})};return c.displayName=n+"Provider",[c,function(r,s){const c=s?.[t]?.[a]||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},ya(o,...n)]}function ya(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function ga(t){const n=va(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,a=e.Children.toArray(o),c=a.find(wa);if(c){const t=c.props.children,o=a.map(n=>n===c?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return s(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return s(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function va(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?pa(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}ca=y.default=(0,la.default)((0,ua.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var ba=Symbol("radix.slottable");function wa(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===ba}var xa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=ga(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),s(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function Ea(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var Sa,Oa="dismissableLayer.update",ka="dismissableLayer.pointerDownOutside",Ca="dismissableLayer.focusOutside",$a=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_a=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...u}=t,f=e.useContext($a),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=e.useState({}),y=ma(n,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),w=d?g.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,S=function(t,n=globalThis?.document){const r=Ea(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){Aa(ka,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...f.branches].some(e=>e.contains(t));E&&!n&&(i?.(e),c?.(e),e.defaultPrevented||l?.())},m),O=function(t,n=globalThis?.document){const r=Ea(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){Aa(Ca,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(a?.(e),c?.(e),e.defaultPrevented||l?.())},m);return function(t,n=globalThis?.document){const r=Ea(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{w===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},m),e.useEffect(()=>{if(d)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Sa=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Na(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Sa)}},[d,m,r,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Na())},[d,f]),e.useEffect(()=>{const e=()=>h({});return document.addEventListener(Oa,e),()=>document.removeEventListener(Oa,e)},[]),s(xa.div,{...u,ref:y,style:{pointerEvents:x?E?"auto":"none":void 0,...t.style},onFocusCapture:fa(t.onFocusCapture,O.onFocusCapture),onBlurCapture:fa(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:fa(t.onPointerDownCapture,S.onPointerDownCapture)})});_a.displayName="DismissableLayer";var Pa=e.forwardRef((t,n)=>{const r=e.useContext($a),o=e.useRef(null),i=ma(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),s(xa.div,{...t,ref:i})});function Na(){const e=new CustomEvent(Oa);document.dispatchEvent(e)}function Aa(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}Pa.displayName="DismissableLayerBranch";var Ta=0;function Ra(){const 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}var Ma="focusScope.autoFocusOnMount",ja="focusScope.autoFocusOnUnmount",Ia={bubbles:!1,cancelable:!0},Da=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...c}=t,[l,u]=e.useState(null),f=Ea(i),d=Ea(a),p=e.useRef(null),m=ma(n,e=>u(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Va(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Va(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Va(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,l,h.paused]),e.useEffect(()=>{if(l){Wa.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Ma,Ia);l.addEventListener(Ma,f),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Va(r,{select:t}),document.activeElement!==n)return}((e=za(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Va(l))}return()=>{l.removeEventListener(Ma,f),setTimeout(()=>{const e=new CustomEvent(ja,Ia);l.addEventListener(ja,d),l.dispatchEvent(e),e.defaultPrevented||Va(t??document.body,{select:!0}),l.removeEventListener(ja,d),Wa.remove(h)},0)}}var e},[l,f,d,h]);const y=e.useCallback(e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=za(e),n=La(t,e),r=La(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Va(i,{select:!0})):(e.preventDefault(),r&&Va(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return s(xa.div,{tabIndex:-1,...c,ref:m,onKeyDown:y})});function za(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function La(e,t){for(const n of e)if(!Fa(n,{upTo:t}))return n}function Fa(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Va(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Da.displayName="FocusScope";var Wa=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ba(e,t),e.unshift(t)},remove(t){e=Ba(e,t),e[0]?.resume()}}}();function Ba(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ua=globalThis?.document?e.useLayoutEffect:()=>{},Ha=e[" useId ".trim().toString()]||(()=>{}),Ga=0;function Ka(t){const[n,r]=e.useState(Ha());return Ua(()=>{r(e=>e??String(Ga++))},[t]),t||(n?`radix-${n}`:"")}const qa=["top","right","bottom","left"],Ya=Math.min,Xa=Math.max,Ja=Math.round,Za=Math.floor,Qa=e=>({x:e,y:e}),es={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(e,t,n){return Xa(e,Ya(t,n))}function ns(e,t){return"function"==typeof e?e(t):e}function rs(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function is(e){return"x"===e?"y":"x"}function as(e){return"y"===e?"height":"width"}function ss(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function cs(e){return is(ss(e))}function ls(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const us=["left","right"],fs=["right","left"],ds=["top","bottom"],ps=["bottom","top"];function ms(e,t,n,r){const o=os(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?fs:us:t?us:fs;case"left":case"right":return t?ds:ps;default:return[]}}(rs(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ls)))),i}function hs(e){const t=rs(e);return es[t]+e.slice(t.length)}function ys(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function gs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vs(e,t,n){let{reference:r,floating:o}=e;const i=ss(t),a=cs(t),s=as(a),c=rs(t),l="y"===i,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(os(t)){case"start":p[a]-=d*(n&&l?-1:1);break;case"end":p[a]+=d*(n&&l?-1:1)}return p}async function bs(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ns(t,e),m=ys(p),h=s[d?"floating"===f?"reference":"floating":f],y=gs(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=gs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(y.top-w.top+m.top)/b.y,bottom:(w.bottom-y.bottom+m.bottom)/b.y,left:(y.left-w.left+m.left)/b.x,right:(w.right-y.right+m.right)/b.x}}function ws(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xs(e){return qa.some(t=>e[t]>=0)}const Es=new Set(["left","top"]);function Ss(){return"undefined"!=typeof window}function Os(e){return $s(e)?(e.nodeName||"").toLowerCase():"#document"}function ks(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Cs(e){var t;return null==(t=($s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $s(e){return!!Ss()&&(e instanceof Node||e instanceof ks(e).Node)}function _s(e){return!!Ss()&&(e instanceof Element||e instanceof ks(e).Element)}function Ps(e){return!!Ss()&&(e instanceof HTMLElement||e instanceof ks(e).HTMLElement)}function Ns(e){return!(!Ss()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ks(e).ShadowRoot)}function As(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Vs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ts(e){return/^(table|td|th)$/.test(Os(e))}function Rs(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Ms=/transform|translate|scale|rotate|perspective|filter/,js=/paint|layout|strict|content/,Is=e=>!!e&&"none"!==e;let Ds;function zs(e){const t=_s(e)?Vs(e):e;return Is(t.transform)||Is(t.translate)||Is(t.scale)||Is(t.rotate)||Is(t.perspective)||!Ls()&&(Is(t.backdropFilter)||Is(t.filter))||Ms.test(t.willChange||"")||js.test(t.contain||"")}function Ls(){return null==Ds&&(Ds="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ds}function Fs(e){return/^(html|body|#document)$/.test(Os(e))}function Vs(e){return ks(e).getComputedStyle(e)}function Ws(e){return _s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bs(e){if("html"===Os(e))return e;const t=e.assignedSlot||e.parentNode||Ns(e)&&e.host||Cs(e);return Ns(t)?t.host:t}function Us(e){const t=Bs(e);return Fs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ps(t)&&As(t)?t:Us(t)}function Hs(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Us(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ks(o);if(i){const e=Gs(a);return t.concat(a,a.visualViewport||[],As(o)?o:[],e&&n?Hs(e):[])}return t.concat(o,Hs(o,[],n))}function Gs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ks(e){const t=Vs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ps(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ja(n)!==i||Ja(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function qs(e){return _s(e)?e:e.contextElement}function Ys(e){const t=qs(e);if(!Ps(t))return Qa(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ks(t);let a=(i?Ja(n.width):n.width)/r,s=(i?Ja(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Xs=Qa(0);function Js(e){const t=ks(e);return Ls()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Xs}function Zs(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qs(e);let a=Qa(1);t&&(r?_s(r)&&(a=Ys(r)):a=Ys(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ks(e))&&t}(i,n,r)?Js(i):Qa(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=ks(i),t=r&&_s(r)?ks(r):r;let n=e,o=Gs(n);for(;o&&r&&t!==n;){const e=Ys(o),t=o.getBoundingClientRect(),r=Vs(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=a,n=ks(o),o=Gs(n)}}return gs({width:u,height:f,x:c,y:l})}function Qs(e,t){const n=Ws(e).scrollLeft;return t?t.left+n:Zs(Cs(e)).left+n}function ec(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Qs(e,n),y:n.top+t.scrollTop}}function tc(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ks(e),r=Cs(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Ls();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const l=Qs(r);if(l<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else l<=25&&(i+=l);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Cs(e),n=Ws(e),r=e.ownerDocument.body,o=Xa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qs(e);const s=-n.scrollTop;return"rtl"===Vs(r).direction&&(a+=Xa(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Cs(e));else if(_s(t))r=function(e,t){const n=Zs(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ps(e)?Ys(e):Qa(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Js(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gs(r)}function nc(e,t){const n=Bs(e);return!(n===t||!_s(n)||Fs(n))&&("fixed"===Vs(n).position||nc(n,t))}function rc(e,t,n){const r=Ps(t),o=Cs(t),i="fixed"===n,a=Zs(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Qa(0);function l(){c.x=Qs(o)}if(r||!r&&!i)if(("body"!==Os(t)||As(o))&&(s=Ws(t)),r){const e=Zs(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=!o||r||i?Qa(0):ec(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function oc(e){return"static"===Vs(e).position}function ic(e,t){if(!Ps(e)||"fixed"===Vs(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Cs(e)===n&&(n=n.ownerDocument.body),n}function ac(e,t){const n=ks(e);if(Rs(e))return n;if(!Ps(e)){let t=Bs(e);for(;t&&!Fs(t);){if(_s(t)&&!oc(t))return t;t=Bs(t)}return n}let r=ic(e,t);for(;r&&Ts(r)&&oc(r);)r=ic(r,t);return r&&Fs(r)&&oc(r)&&!zs(r)?n:r||function(e){let t=Bs(e);for(;Ps(t)&&!Fs(t);){if(zs(t))return t;if(Rs(t))return null;t=Bs(t)}return null}(e)||n}const sc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Cs(r),s=!!t&&Rs(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Qa(1);const u=Qa(0),f=Ps(r);if((f||!f&&!i)&&(("body"!==Os(r)||As(a))&&(c=Ws(r)),f)){const e=Zs(r);l=Ys(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!a||f||i?Qa(0):ec(a,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:Cs,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Rs(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Hs(e,[],!1).filter(e=>_s(e)&&"body"!==Os(e)),o=null;const i="fixed"===Vs(e).position;let a=i?Bs(e):e;for(;_s(a)&&!Fs(a);){const t=Vs(a),n=zs(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||As(a)&&!n&&nc(e,a))?r=r.filter(e=>e!==a):o=t,a=Bs(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=tc(t,a[0],o);let c=s.top,l=s.right,u=s.bottom,f=s.left;for(let e=1;e<a.length;e++){const n=tc(t,a[e],o);c=Xa(n.top,c),l=Ya(n.right,l),u=Ya(n.bottom,u),f=Xa(n.left,f)}return{width:l-f,height:u-c,x:f,y:c}},getOffsetParent:ac,getElementRects:async function(e){const t=this.getOffsetParent||ac,n=this.getDimensions,r=await n(e.floating);return{reference:rc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ks(e);return{width:t,height:n}},getScale:Ys,isElement:_s,isRTL:function(e){return"rtl"===Vs(e).direction}};function cc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lc(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=qs(e),u=o||i?[...l?Hs(l):[],...t?Hs(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=l&&s?function(e,t){let n,r=null;const o=Cs(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(s||t(),!d||!p)return;const m={rootMargin:-Za(f)+"px "+-Za(o.clientWidth-(u+d))+"px "+-Za(o.clientHeight-(f+p))+"px "+-Za(u)+"px",threshold:Xa(0,Ya(1,c))||1};let h=!0;function y(t){const r=t[0].intersectionRatio;if(r!==c){if(!h)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||cc(l,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,m)}r.observe(e)}(!0),i}(l,n):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),l&&!c&&m.observe(l),t&&m.observe(t));let h=c?Zs(e):null;return c&&function t(){const r=Zs(e);h&&!cc(h,r)&&n();h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(d)}}const uc=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=rs(n),s=os(n),c="y"===ss(n),l=Es.has(a)?-1:1,u=i&&c?-1:1,f=ns(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},fc=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ns(e,t),u={x:n,y:r},f=await i.detectOverflow(t,l),d=ss(rs(o)),p=is(d);let m=u[p],h=u[d];if(a){const e="y"===p?"bottom":"right";m=ts(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";h=ts(h+f["y"===d?"top":"left"],h,h-f[e])}const y=c.fn({...t,[p]:m,[d]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:a,[d]:s}}}}}},dc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=ns(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=rs(o),v=ss(s),b=rs(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(b||!h?[hs(s)]:function(e){const t=hs(e);return[ls(e),t,ls(t)]}(s)),E="none"!==m;!d&&E&&x.push(...ms(s,h,m,w));const S=[s,...x],O=await c.detectOverflow(t,y),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=os(e),o=cs(e),i=as(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=hs(a)),[a,hs(a)]}(o,a,w);k.push(O[e[0]],O[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every(e=>e<=0)){var $,_;const e=((null==($=i.flip)?void 0:$.index)||0)+1,t=S[e];if(t){if(!("alignment"===f&&v!==ss(t))||C.every(e=>ss(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==(_=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter(e=>{if(E){const t=ss(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},pc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=ns(e,t),u=await a.detectOverflow(t,l),f=rs(o),d=os(o),p="y"===ss(o),{width:m,height:h}=i.floating;let y,g;"top"===f||"bottom"===f?(y=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,y="end"===d?"top":"bottom");const v=h-u.top-u.bottom,b=m-u.left-u.right,w=Ya(h-u[y],v),x=Ya(m-u[g],b),E=!t.middlewareData.shift;let S=w,O=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),E&&!d){const e=Xa(u.left,0),t=Xa(u.right,0),n=Xa(u.top,0),r=Xa(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:Xa(u.left,u.right)):S=h-2*(0!==n||0!==r?n+r:Xa(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:S});const k=await a.getDimensions(s.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}},mc=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=ns(e,t);switch(o){case"referenceHidden":{const e=ws(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:xs(e)}}}case"escaped":{const e=ws(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:xs(e)}}}default:return{}}}}},hc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ns(e,t)||{};if(null==l)return{};const f=ys(u),d={x:n,y:r},p=cs(o),m=as(p),h=await a.getDimensions(l),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=E?E[b]:0;S&&await(null==a.isElement?void 0:a.isElement(E))||(S=s.floating[b]||i.floating[m]);const O=w/2-x/2,k=S/2-h[m]/2-1,C=Ya(f[g],k),$=Ya(f[v],k),_=C,P=S-h[m]-$,N=S/2-h[m]/2+O,A=ts(_,N,P),T=!c.arrow&&null!=os(o)&&N!==A&&i.reference[m]/2-(N<_?C:$)-h[m]/2<0,R=T?N<_?N-_:N-P:0;return{[p]:d[p]+R,data:{[p]:A,centerOffset:N-A-R,...T&&{alignmentOffset:R}},reset:T}}}),yc=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ns(e,t),u={x:n,y:r},f=ss(o),d=is(f);let p=u[d],m=u[f];const h=ns(s,t),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+y.mainAxis,n=i.reference[d]+i.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v;const e="y"===d?"width":"height",t=Es.has(rs(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:y.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[f])||0)-(t?y.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},gc=(e,t,n)=>{const r=new Map,o={platform:sc,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:bs},c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=vs(l,r,c),d=r,p=0;const m={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:y,fn:g}=h,{x:v,y:b,data:w,reset:x}=await g({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,f=null!=b?b:f,m[y]={...m[y],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=vs(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var vc="undefined"!=typeof document?o:function(){};function bc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!bc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!bc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function wc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xc(e,t){const n=wc(e);return Math.round(t*n)/n}function Ec(t){const n=e.useRef(t);return vc(()=>{n.current=t}),n}const Sc=(e,t)=>{const n=uc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oc=(e,t)=>{const n=fc(e);return{name:n.name,fn:n.fn,options:[e,t]}},kc=(e,t)=>({fn:yc(e).fn,options:[e,t]}),Cc=(e,t)=>{const n=dc(e);return{name:n.name,fn:n.fn,options:[e,t]}},$c=(e,t)=>{const n=pc(e);return{name:n.name,fn:n.fn,options:[e,t]}},_c=(e,t)=>{const n=mc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pc=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?hc({element:n.current,padding:r}).fn(t):{}:n?hc({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Nc=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return s(xa.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s("polygon",{points:"0,0 30,0 15,10"})})});Nc.displayName="Arrow";var Ac=Nc;var Tc="Popper",[Rc,Mc]=ha(Tc),[jc,Ic]=Rc(Tc),Dc=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return s(jc,{scope:n,anchor:o,onAnchorChange:i,children:r})};Dc.displayName=Tc;var zc="PopperAnchor",Lc=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Ic(zc,r),c=e.useRef(null),l=ma(n,c),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||c.current,e!==u.current&&a.onAnchorChange(u.current)}),o?null:s(xa.div,{...i,ref:l})});Lc.displayName=zc;var Fc="PopperContent",[Vc,Wc]=Rc(Fc),Bc=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...v}=t,b=Ic(Fc,r),[w,x]=e.useState(null),E=ma(n,e=>x(e)),[S,O]=e.useState(null),k=function(t){const[n,r]=e.useState(void 0);return Ua(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(S),C=k?.width??0,$=k?.height??0,_=o+("center"!==a?"-"+a:""),P="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},N=Array.isArray(d)?d:[d],A=N.length>0,T={padding:P,boundary:N.filter(Kc),altBoundary:A},{refs:R,floatingStyles:M,placement:j,isPositioned:I,middlewareData:D}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:u,open:f}=t,[d,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);bc(m,o)||h(o);const[y,g]=e.useState(null),[v,b]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),E=a||y,S=s||v,O=e.useRef(null),k=e.useRef(null),C=e.useRef(d),$=null!=u,_=Ec(u),P=Ec(i),N=Ec(f),A=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};P.current&&(e.platform=P.current),gc(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};T.current&&!bc(C.current,t)&&(C.current=t,l.flushSync(()=>{p(t)}))})},[m,n,r,P,N]);vc(()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);const T=e.useRef(!1);vc(()=>(T.current=!0,()=>{T.current=!1}),[]),vc(()=>{if(E&&(O.current=E),S&&(k.current=S),E&&S){if(_.current)return _.current(E,S,A);A()}},[E,S,A,_,$]);const R=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:S}),[E,S]),j=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=xc(M.floating,d.x),n=xc(M.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...wc(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,M.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:A,refs:R,elements:M,floatingStyles:j}),[d,A,R,M,j])}({strategy:"fixed",placement:_,whileElementsMounted:(...e)=>lc(...e,{animationFrame:"always"===y}),elements:{reference:b.anchor},middleware:[Sc({mainAxis:i+$,alignmentAxis:c}),f&&Oc({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?kc():void 0,...T}),f&&Cc({...T}),$c({...T,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),S&&Pc({element:S,padding:u}),qc({arrowWidth:C,arrowHeight:$}),h&&_c({strategy:"referenceHidden",...T})]}),[z,L]=Yc(j),F=Ea(g);Ua(()=>{I&&F?.()},[I,F]);const V=D.arrow?.x,W=D.arrow?.y,B=0!==D.arrow?.centerOffset,[U,H]=e.useState();return Ua(()=>{w&&H(window.getComputedStyle(w).zIndex)},[w]),s("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:I?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:s(Vc,{scope:r,placedSide:z,onArrowChange:O,arrowX:V,arrowY:W,shouldHideArrow:B,children:s(xa.div,{"data-side":z,"data-align":L,...v,ref:E,style:{...v.style,animation:I?void 0:"none"}})})})});Bc.displayName=Fc;var Uc="PopperArrow",Hc={top:"bottom",right:"left",bottom:"top",left:"right"},Gc=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Wc(Uc,n),i=Hc[o.placedSide];return s("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:s(Ac,{...r,ref:t,style:{...r.style,display:"block"}})})});function Kc(e){return null!==e}Gc.displayName=Uc;var qc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[c,l]=Yc(n),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===c?(p=i?u:`${f}px`,m=-s+"px"):"top"===c?(p=i?u:`${f}px`,m=`${r.floating.height+s}px`):"right"===c?(p=-s+"px",m=i?u:`${d}px`):"left"===c&&(p=`${r.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function Yc(e){const[t,n="center"]=e.split("-");return[t,n]}var Xc=Dc,Jc=Lc,Zc=Bc,Qc=Gc,el=e.forwardRef((t,n)=>{const{container:r,...o}=t,[i,a]=e.useState(!1);Ua(()=>a(!0),[]);const c=r||i&&globalThis?.document?.body;return c?u.createPortal(s(xa.div,{...o,ref:n}),c):null});el.displayName="Portal";var tl=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[c,l]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=nl(o.current);a.current="mounted"===c?e:"none"},[c]),Ua(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=nl(e);if(t)l("MOUNT");else if("none"===o||"none"===e?.display)l("UNMOUNT");else{l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,l]),Ua(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=nl(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(l("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(a.current=nl(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}l("ANIMATION_END")},[n,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=ma(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function nl(e){return e?.animationName||"none"}tl.displayName="Presence";var rl=e[" useInsertionEffect ".trim().toString()]||Ua;function ol({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),a=e.useRef(n);return rl(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),c=void 0!==t,l=c?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==c){const t=e?"controlled":"uncontrolled",n=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. 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.`)}n.current=c},[c,o])}const u=e.useCallback(e=>{if(c){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[c,t,a,s]);return[l,u]}var il=new WeakMap,al=new WeakMap,sl={},cl=0,ll=function(e){return e&&(e.host||ll(e.parentNode))},ul=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ll(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);sl[n]||(sl[n]=new WeakMap);var i=sl[n],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(il.get(e)||0)+1,l=(i.get(e)||0)+1;il.set(e,c),i.set(e,l),a.push(e),1===c&&o&&al.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),cl++,function(){a.forEach(function(e){var t=il.get(e)-1,o=i.get(e)-1;il.set(e,t),i.set(e,o),t||(al.has(e)||e.removeAttribute(r),al.delete(e)),o||e.removeAttribute(n)}),--cl||(il=new WeakMap,il=new WeakMap,al=new WeakMap,sl={})}},fl=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ul(r,o,n,"aria-hidden")):function(){return null}},dl=function(){return dl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dl.apply(this,arguments)};function pl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var ml="right-scroll-bar-position",hl="width-before-scroll-bar";function yl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gl="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,vl=new WeakMap;function bl(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach(function(e){return yl(e,t)})},(o=i(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return gl(function(){var t=vl.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||yl(e,null)}),r.forEach(function(e){n.has(e)||yl(e,o)})}vl.set(a,e)},[e]),a}function wl(e){return e}var xl=function(t){var n=t.sideCar,r=pl(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,dl({},r))};xl.isSideCarExport=!0;var El=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=wl);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=dl({async:!0,ssr:!1},e),t}(),Sl=function(){},Ol=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Sl,onWheelCapture:Sl,onTouchMoveCapture:Sl}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,f=t.enabled,d=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,y=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,w=t.gapMode,x=pl(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,S=bl([r,n]),O=dl(dl({},x),i);return e.createElement(e.Fragment,null,f&&e.createElement(E,{sideCar:El,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(c),dl(dl({},O),{ref:S})):e.createElement(b,dl({},O,{className:l,ref:S}),c))});Ol.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ol.classNames={fullWidth:hl,zeroRight:ml};function kl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Cl=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=kl())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$l=function(){var t,n=(t=Cl(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},_l={left:0,top:0,right:0,gap:0},Pl=function(e){return parseInt(e||"",10)||0},Nl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return _l;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Pl(n),Pl(r),Pl(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Al=$l(),Tl="data-scroll-locked",Rl=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Tl,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ml," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(hl," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ml," .").concat(ml," {\n right: 0 ").concat(r,";\n }\n \n .").concat(hl," .").concat(hl," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Tl,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Ml=function(){var e=parseInt(document.body.getAttribute(Tl)||"0",10);return isFinite(e)?e:0},jl=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Tl,(Ml()+1).toString()),function(){var e=Ml()-1;e<=0?document.body.removeAttribute(Tl):document.body.setAttribute(Tl,e.toString())}},[]);var a=e.useMemo(function(){return Nl(i)},[i]);return e.createElement(Al,{styles:Rl(a,!n,i,r?"":"!important")})},Il=!1;if("undefined"!=typeof window)try{var Dl=Object.defineProperty({},"passive",{get:function(){return Il=!0,!0}});window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch(e){Il=!1}var zl=!!Il&&{passive:!1},Ll=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Fl=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Vl(e,r)){var o=Wl(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Vl=function(e,t){return"v"===e?function(e){return Ll(e,"overflowY")}(t):function(e){return Ll(e,"overflowX")}(t)},Wl=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Bl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ul=function(e){return[e.deltaX,e.deltaY]},Hl=function(e){return e&&"current"in e?e.current:e},Gl=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Kl=0,ql=[];function Yl(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Xl,Jl=(Xl=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Kl++)[0],a=e.useState($l)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(Hl),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=Bl(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Fl(f,u);if(!m)return!0;if(m?n=f:(n="v"===f?"h":"v",m=Fl(f,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=n),!n)return!0;var h=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),c=!1,l=i>0,u=0,f=0;do{if(!a)break;var d=Wl(e,a),p=d[0],m=d[1]-d[2]-o*p;(p||m)&&Vl(e,a)&&(u+=m,f+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(f)<1)&&(c=!0),c}(h,t,e,"h"===h?c:l)},[]),l=e.useCallback(function(e){var t=e;if(ql.length&&ql[ql.length-1]===a){var r="deltaY"in t?Ul(t):Bl(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Hl).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:Yl(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),f=e.useCallback(function(e){r.current=Bl(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,Ul(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Bl(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return ql.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,zl),document.addEventListener("touchmove",l,zl),document.addEventListener("touchstart",f,zl),function(){ql=ql.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,zl),document.removeEventListener("touchmove",l,zl),document.removeEventListener("touchstart",f,zl)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Gl(i)}):null,m?e.createElement(jl,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},El.useMedium(Xl),xl),Zl=e.forwardRef(function(t,n){return e.createElement(Ol,dl({},t,{ref:n,sideCar:Jl}))});Zl.classNames=Ol.classNames;var Ql="Popover",[eu]=ha(Ql,[Mc]),tu=Mc(),[nu,ru]=eu(Ql),ou=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:c=!1}=t,l=tu(n),u=e.useRef(null),[f,d]=e.useState(!1),[p,m]=ol({prop:o,defaultProp:i??!1,onChange:a,caller:Ql});return s(Xc,{...l,children:s(nu,{scope:n,contentId:Ka(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:c,children:r})})};ou.displayName=Ql;var iu="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,i=ru(iu,r),a=tu(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:l}=i;return e.useEffect(()=>(c(),()=>l()),[c,l]),s(Jc,{...a,...o,ref:n})}).displayName=iu;var au="PopoverTrigger",su=e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ru(au,n),i=tu(n),a=ma(t,o.triggerRef),c=s(xa.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bu(o.open),...r,ref:a,onClick:fa(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:s(Jc,{asChild:!0,...i,children:c})});su.displayName=au;var cu="PopoverPortal",[lu,uu]=eu(cu,{forceMount:void 0}),fu=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=ru(cu,t);return s(lu,{scope:t,forceMount:n,children:s(tl,{present:n||i.open,children:s(el,{asChild:!0,container:o,children:r})})})};fu.displayName=cu;var du="PopoverContent",pu=e.forwardRef((e,t)=>{const n=uu(du,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=ru(du,e.__scopePopover);return s(tl,{present:r||i.open,children:i.modal?s(hu,{...o,ref:t}):s(yu,{...o,ref:t})})});pu.displayName=du;var mu=ga("PopoverContent.RemoveScroll"),hu=e.forwardRef((t,n)=>{const r=ru(du,t.__scopePopover),o=e.useRef(null),i=ma(n,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return fl(e)},[]),s(Zl,{as:mu,allowPinchZoom:!0,children:s(gu,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fa(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:fa(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:fa(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),yu=e.forwardRef((t,n)=>{const r=ru(du,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return s(gu,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,a=r.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),gu=e.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,...p}=t,m=ru(du,r),h=tu(r);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ra()),document.body.insertAdjacentElement("beforeend",e[1]??Ra()),Ta++,()=>{1===Ta&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Ta--}},[]),s(Da,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:s(_a,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),children:s(Zc,{"data-state":bu(m.open),role:"dialog",id:m.contentId,...h,...p,ref:n,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),vu="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ru(vu,n);return s(xa.button,{type:"button",...r,ref:t,onClick:fa(e.onClick,()=>o.onOpenChange(!1))})}).displayName=vu;function bu(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tu(n);return s(Qc,{...o,...r,ref:t})}).displayName="PopoverArrow";var wu=ou,xu=su,Eu=fu,Su=pu;const Ou=e=>{const t=_u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ku(n,t)||$u(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},ku=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ku(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Cu=/^\[(.+)\]$/,$u=e=>{if(Cu.test(e)){const t=Cu.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_u=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Tu(Object.entries(e.classGroups),n).forEach(([e,n])=>{Pu(n,r,e,t)}),r},Pu=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Nu(t,e)).classGroupId=n)}if("function"==typeof e)return Au(e)?void Pu(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Pu(o,Nu(t,e),n,r)})})},Nu=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Au=e=>e.isThemeGetter,Tu=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Ru=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Mu=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===o&&(r||e.slice(l,l+i)===t)){n.push(e.slice(c,l)),c=l+i;continue}if("/"===u){a=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===n.length?e:e.substring(c),u=l.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}};return n?e=>n({className:e,parseClassName:a}):a},ju=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Iu=/\s+/;function Du(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=zu(e))&&(r&&(r+=" "),r+=t);return r}const zu=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zu(e[r]))&&(n&&(n+=" "),n+=t);return n};function Lu(e,...t){let n,r,o,i=function(s){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Ru(e.cacheSize),parseClassName:Mu(e),...Ou(e)}))(c),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Iu);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:f}=n(t);let d=Boolean(f),p=r(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=ju(c).join(":"),h=l?m+"!":m,y=h+p;if(i.includes(y))continue;i.push(y);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(Du.apply(null,arguments))}}const Fu=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Vu=/^\[(?:([a-z-]+):)?(.+)\]$/i,Wu=/^\d+\/\d+$/,Bu=new Set(["px","full","screen"]),Uu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ku=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yu=e=>Ju(e)||Bu.has(e)||Wu.test(e),Xu=e=>ff(e,"length",df),Ju=e=>Boolean(e)&&!Number.isNaN(Number(e)),Zu=e=>ff(e,"number",Ju),Qu=e=>Boolean(e)&&Number.isInteger(Number(e)),ef=e=>e.endsWith("%")&&Ju(e.slice(0,-1)),tf=e=>Vu.test(e),nf=e=>Uu.test(e),rf=new Set(["length","size","percentage"]),of=e=>ff(e,rf,pf),af=e=>ff(e,"position",pf),sf=new Set(["image","url"]),cf=e=>ff(e,sf,hf),lf=e=>ff(e,"",mf),uf=()=>!0,ff=(e,t,n)=>{const r=Vu.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},df=e=>Hu.test(e)&&!Gu.test(e),pf=()=>!1,mf=e=>Ku.test(e),hf=e=>qu.test(e),yf=()=>{const e=Fu("colors"),t=Fu("spacing"),n=Fu("blur"),r=Fu("brightness"),o=Fu("borderColor"),i=Fu("borderRadius"),a=Fu("borderSpacing"),s=Fu("borderWidth"),c=Fu("contrast"),l=Fu("grayscale"),u=Fu("hueRotate"),f=Fu("invert"),d=Fu("gap"),p=Fu("gradientColorStops"),m=Fu("gradientColorStopPositions"),h=Fu("inset"),y=Fu("margin"),g=Fu("opacity"),v=Fu("padding"),b=Fu("saturate"),w=Fu("scale"),x=Fu("sepia"),E=Fu("skew"),S=Fu("space"),O=Fu("translate"),k=()=>["auto",tf,t],C=()=>[tf,t],$=()=>["",Yu,Xu],_=()=>["auto",Ju,tf],P=()=>["","0",tf],N=()=>[Ju,tf];return{cacheSize:500,separator:":",theme:{colors:[uf],spacing:[Yu,Xu],blur:["none","",nf,tf],brightness:N(),borderColor:[e],borderRadius:["none","","full",nf,tf],borderSpacing:C(),borderWidth:$(),contrast:N(),grayscale:P(),hueRotate:N(),invert:P(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[ef,Xu],inset:k(),margin:k(),opacity:N(),padding:C(),saturate:N(),scale:N(),sepia:P(),skew:N(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",tf]}],container:["container"],columns:[{columns:[nf]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",tf]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qu,tf]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tf]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Qu,tf]}],"grid-cols":[{"grid-cols":[uf]}],"col-start-end":[{col:["auto",{span:["full",Qu,tf]},tf]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[uf]}],"row-start-end":[{row:["auto",{span:[Qu,tf]},tf]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tf]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tf]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",tf,t]}],"min-w":[{"min-w":[tf,t,"min","max","fit"]}],"max-w":[{"max-w":[tf,t,"none","full","min","max","fit","prose",{screen:[nf]},nf]}],h:[{h:[tf,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[tf,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[tf,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[tf,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nf,Xu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zu]}],"font-family":[{font:[uf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tf]}],"line-clamp":[{"line-clamp":["none",Ju,Zu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yu,tf]}],"list-image":[{"list-image":["none",tf]}],"list-style-type":[{list:["none","disc","decimal",tf]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yu,Xu]}],"underline-offset":[{"underline-offset":["auto",Yu,tf]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",af]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",of]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cf]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Yu,tf]}],"outline-w":[{outline:[Yu,Xu]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Yu,Xu]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nf,lf]}],"shadow-color":[{shadow:[uf]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",nf,tf]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tf]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",tf]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",tf]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Qu,tf]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tf]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tf]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tf]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Yu,Xu,Zu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},gf=Lu(yf);function vf(...e){return gf(Re(e))}const bf=wu,wf=xu,xf=e.forwardRef(({className:t,align:n="center",sideOffset:r=4,...o},i)=>e.createElement(Eu,null,e.createElement(Su,{ref:i,align:n,sideOffset:r,className:vf("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));xf.displayName=Su.displayName;const Ef=({id:e,className:n,align:r,side:o,sideOffset:i=8,visible:a,content:s,children:c,onPointerDownOutside:l,onOpenAutoFocus:u})=>t.createElement(bf,{open:a},t.createElement(wf,{asChild:!0},c),t.createElement(xf,{id:e,className:h("gyramais-popover-content",n),align:r,side:o,sideOffset:i,onPointerDownOutside:l,onOpenAutoFocus:u},s)),Sf=({id:e,className:n,visible:r,align:o="start",side:i="bottom",sideOffset:a=6,width:s=320,maxHeight:c=480,trigger:l,children:u,onPointerDownOutside:f,onOpenAutoFocus:d})=>{const p="number"==typeof s?`${s}px`:s,m="number"==typeof c?`${c}px`:c;return t.createElement(Ef,{id:e,visible:r,align:o,side:i,sideOffset:a,className:h("gyramais-picker-popover",n),onPointerDownOutside:f,onOpenAutoFocus:d,content:t.createElement("div",{className:"gyramais-picker-popover-inner",style:{width:p,maxHeight:m}},u)},l)};Sf.Header=({className:e,title:n,searchPlaceholder:r,searchValue:o,onSearchChange:i,onSearchKeyDown:a,searchAutoFocus:s=!0,accessory:c})=>{const l=void 0!==r||void 0!==i;return t.createElement("div",{className:h("gyramais-picker-popover-head",e)},n&&t.createElement("div",{className:"gyramais-picker-popover-title"},n),(l||c)&&t.createElement("div",{className:"gyramais-picker-popover-head-row"},l&&t.createElement("div",{className:"gyramais-picker-popover-search"},t.createElement(ca,{className:"gyramais-picker-popover-search-icon"}),t.createElement("input",{type:"text",placeholder:r,value:o??"",onChange:e=>i?.(e.target.value),onKeyDown:a,autoFocus:s})),c&&t.createElement("div",{className:"gyramais-picker-popover-accessory"},c)))},Sf.Body=({className:e,children:n})=>t.createElement("div",{className:h("gyramais-picker-popover-body",e)},n),Sf.Footer=({className:e,children:n})=>t.createElement("div",{className:h("gyramais-picker-popover-foot",e)},n),Sf.Section=({className:e,title:n,children:r})=>t.createElement("div",{className:h("gyramais-picker-popover-section",e)},n&&t.createElement("div",{className:"gyramais-picker-popover-section-head"},n),r);export{Sf as PickerPopover};
44
+ function(e,t){const n=Hn(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some(e=>void 0===e)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:function(e){return Yn[0]=e,gn(Yn)},keyframes:function(){var e=Dn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}}),Jn=d(Xn),Zn=d(k),Qn=d(ue),er=d(ce);const tr=["values","unit","step"];function nr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ae(e,tr),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>w({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function c(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function l(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return w({keys:a,values:i,up:s,down:c,between:l,only:function(e){return a.indexOf(e)+1<a.length?l(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?c(a[t]):l(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const rr={borderRadius:4},or="production"!==process.env.NODE_ENV?Y.oneOfType([Y.number,Y.string,Y.object,Y.array]):{};function ir(e,t){return t?S(e,t,{clone:!1}):e}const ar={xs:0,sm:600,md:900,lg:1200,xl:1536},sr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ar[e]}px)`};function cr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sr;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||sr;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||ar).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function lr(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ur(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function fr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ur(e,n)||r,t&&(o=t(o,r,e)),o}function dr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ur(e.theme,r)||{};return cr(e,i,e=>{let r=fr(a,o,e);return e===r&&"string"==typeof e&&(r=fr(a,o,`${t}${"default"===e?"":le(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:or}:{},i.filterProps=[t],i}const pr={m:"margin",p:"padding"},mr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!hr[e])return[e];e=hr[e]}const[t,n]=e.split(""),r=pr[t],o=mr[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),gr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],br=[...gr,...vr];function wr(e,t,n,r){var o;const i=null!=(o=ur(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function xr(e){return wr(e,"spacing",8,"spacing")}function Er(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Sr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Er(t,n),e),{})}(yr(n),r);return cr(e,e[n],o)}function Or(e,t){const n=xr(e.theme);return Object.keys(e).map(r=>Sr(e,t,r,n)).reduce(ir,{})}function kr(e){return Or(e,gr)}function Cr(e){return Or(e,vr)}function $r(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?ir(n,t[r](e)):n,{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function _r(e){return"number"!=typeof e?e:`${e}px solid`}function Pr(e,t){return dr({prop:e,themeKey:"borders",transform:t})}kr.propTypes="production"!==process.env.NODE_ENV?gr.reduce((e,t)=>(e[t]=or,e),{}):{},kr.filterProps=gr,Cr.propTypes="production"!==process.env.NODE_ENV?vr.reduce((e,t)=>(e[t]=or,e),{}):{},Cr.filterProps=vr,"production"===process.env.NODE_ENV||br.reduce((e,t)=>(e[t]=or,e),{});const Nr=Pr("border",_r),Ar=Pr("borderTop",_r),Tr=Pr("borderRight",_r),Rr=Pr("borderBottom",_r),Mr=Pr("borderLeft",_r),jr=Pr("borderColor"),Ir=Pr("borderTopColor"),Dr=Pr("borderRightColor"),zr=Pr("borderBottomColor"),Lr=Pr("borderLeftColor"),Fr=Pr("outline",_r),Vr=Pr("outlineColor"),Wr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=wr(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Er(t,e)});return cr(e,e.borderRadius,n)}return null};Wr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:or}:{},Wr.filterProps=["borderRadius"],$r(Nr,Ar,Tr,Rr,Mr,jr,Ir,Dr,zr,Lr,Wr,Fr,Vr);const Br=e=>{if(void 0!==e.gap&&null!==e.gap){const t=wr(e.theme,"spacing",8,"gap"),n=e=>({gap:Er(t,e)});return cr(e,e.gap,n)}return null};Br.propTypes="production"!==process.env.NODE_ENV?{gap:or}:{},Br.filterProps=["gap"];const Ur=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=wr(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Er(t,e)});return cr(e,e.columnGap,n)}return null};Ur.propTypes="production"!==process.env.NODE_ENV?{columnGap:or}:{},Ur.filterProps=["columnGap"];const Hr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=wr(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Er(t,e)});return cr(e,e.rowGap,n)}return null};Hr.propTypes="production"!==process.env.NODE_ENV?{rowGap:or}:{},Hr.filterProps=["rowGap"];function Gr(e,t){return"grey"===t?t:e}$r(Br,Ur,Hr,dr({prop:"gridColumn"}),dr({prop:"gridRow"}),dr({prop:"gridAutoFlow"}),dr({prop:"gridAutoColumns"}),dr({prop:"gridAutoRows"}),dr({prop:"gridTemplateColumns"}),dr({prop:"gridTemplateRows"}),dr({prop:"gridTemplateAreas"}),dr({prop:"gridArea"}));function Kr(e){return e<=1&&0!==e?100*e+"%":e}$r(dr({prop:"color",themeKey:"palette",transform:Gr}),dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gr}),dr({prop:"backgroundColor",themeKey:"palette",transform:Gr}));const qr=dr({prop:"width",transform:Kr}),Yr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ar[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Kr(t)}};return cr(e,e.maxWidth,t)}return null};Yr.filterProps=["maxWidth"];const Xr=dr({prop:"minWidth",transform:Kr}),Jr=dr({prop:"height",transform:Kr}),Zr=dr({prop:"maxHeight",transform:Kr}),Qr=dr({prop:"minHeight",transform:Kr});dr({prop:"size",cssProperty:"width",transform:Kr}),dr({prop:"size",cssProperty:"height",transform:Kr});$r(qr,Yr,Xr,Jr,Zr,Qr,dr({prop:"boxSizing"}));const eo={border:{themeKey:"borders",transform:_r},borderTop:{themeKey:"borders",transform:_r},borderRight:{themeKey:"borders",transform:_r},borderBottom:{themeKey:"borders",transform:_r},borderLeft:{themeKey:"borders",transform:_r},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_r},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wr},color:{themeKey:"palette",transform:Gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gr},backgroundColor:{themeKey:"palette",transform:Gr},p:{style:Cr},pt:{style:Cr},pr:{style:Cr},pb:{style:Cr},pl:{style:Cr},px:{style:Cr},py:{style:Cr},padding:{style:Cr},paddingTop:{style:Cr},paddingRight:{style:Cr},paddingBottom:{style:Cr},paddingLeft:{style:Cr},paddingX:{style:Cr},paddingY:{style:Cr},paddingInline:{style:Cr},paddingInlineStart:{style:Cr},paddingInlineEnd:{style:Cr},paddingBlock:{style:Cr},paddingBlockStart:{style:Cr},paddingBlockEnd:{style:Cr},m:{style:kr},mt:{style:kr},mr:{style:kr},mb:{style:kr},ml:{style:kr},mx:{style:kr},my:{style:kr},margin:{style:kr},marginTop:{style:kr},marginRight:{style:kr},marginBottom:{style:kr},marginLeft:{style:kr},marginX:{style:kr},marginY:{style:kr},marginInline:{style:kr},marginInlineStart:{style:kr},marginInlineEnd:{style:kr},marginBlock:{style:kr},marginBlockStart:{style:kr},marginBlockEnd:{style:kr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Br},rowGap:{style:Hr},columnGap:{style:Ur},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Kr},maxWidth:{style:Yr},minWidth:{transform:Kr},height:{transform:Kr},maxHeight:{transform:Kr},minHeight:{transform:Kr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function to(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:c,style:l}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=ur(n,s)||{};if(l)return l(o);return cr(o,t,t=>{let n=fr(u,c,t);return t===n&&"string"==typeof t&&(n=fr(u,c,`${e}${"default"===t?"":le(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:eo;function c(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),c=Object.keys(o);let l=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],c=i,"function"==typeof a?a(c):a);var a,c;if(null!=o)if("object"==typeof o)if(s[n])l=ir(l,e(n,o,i,s));else{const e=cr({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?l=ir(l,e):l[n]=t({sx:o,theme:i,nested:!0})}else l=ir(l,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":lr(c,l)}:lr(c,l)}return Array.isArray(o)?o.map(c):c(o)}}const no=to();function ro(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}no.filterProps=["sx"];const oo=["breakpoints","palette","spacing","shape"];function io(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ae(e,oo),s=nr(n),c=function(e=8){if(e.mui)return e;const t=xr({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" "));return n.mui=!0,n}(o);let l=S({breakpoints:s,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:c,shape:w({},rr,i)},a);return l.applyStyles=ro,l=t.reduce((e,t)=>S(e,t),l),l.unstable_sxConfig=w({},eo,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return no({sx:e,theme:this})},l}var ao=d(Object.freeze({__proto__:null,default:io,private_createBreakpoints:nr,unstable_applyStyles:ro}));const so=["sx"];var co=d(Object.freeze({__proto__:null,default:no,extendSxProp:function(e){const{sx:t}=e,n=Ae(e,so),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:eo;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return x(n)?w({},r,n):r}:w({},r,t),w({},o,{sx:i})},unstable_createStyleFunctionSx:to,unstable_defaultSxConfig:eo})),lo=v;Object.defineProperty(De,"__esModule",{value:!0});var uo=De.default=function(e={}){const{themeId:t,defaultTheme:n=Co,rootShouldForwardProp:r=Oo,slotShouldForwardProp:o=Oo}=e,i=e=>(0,bo.default)((0,fo.default)({},e,{theme:_o((0,fo.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,mo.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:l,skipSx:u,overridesResolver:f=Po($o(c))}=a,d=(0,po.default)(a,Eo),p=s&&s.startsWith("Mui")||c?"components":"custom",m=void 0!==l?l:c&&"Root"!==c&&"root"!==c||!1,h=u||!1;let y;"production"!==process.env.NODE_ENV&&s&&(y=`${s}-${$o(c||"Root")}`);let g=Oo;"Root"===c||"root"===c?g=r:c?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,mo.default)(e,(0,fo.default)({shouldForwardProp:g,label:y},d)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ho.isPlainObject)(e)?r=>{const o=_o({theme:r.theme,defaultTheme:n,themeId:t});return No(e,(0,fo.default)({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,w=(r,...o)=>{let a=b(r);const l=o?o.map(b):[];s&&f&&l.push(e=>{const r=_o((0,fo.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=No(n,(0,fo.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),f(e,i)}),s&&!m&&l.push(e=>{var r;const o=_o((0,fo.default)({},e,{defaultTheme:n,themeId:t}));return No({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,fo.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),h||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=v(a,...l);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${(0,yo.default)(c||"")}`),void 0===t&&(t=`Styled(${(0,go.default)(e)})`),d.displayName=t}return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(w.withConfig=v.withConfig),w}};De.shouldForwardProp=Oo,De.systemDefaultTheme=void 0;var fo=lo((Ie||(Ie=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ze)),ze.exports)),po=lo((Le||(Le=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Fe)),Fe.exports)),mo=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=So(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Jn),ho=Zn,yo=lo(Qn),go=lo(er),vo=lo(ao),bo=lo(co);const wo=["ownerState"],xo=["variants"],Eo=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function So(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(So=function(e){return e?n:t})(e)}function Oo(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function ko(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Co=De.systemDefaultTheme=(0,vo.default)(),$o=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function _o({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Po(e){return e?(t,n)=>n[e]:null}function No(e,t,n){let{ownerState:r}=t,o=(0,po.default)(t,wo);const i="function"==typeof e?e((0,fo.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>No(e,(0,fo.default)({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,po.default)(i,xo);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,fo.default)({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,fo.default)({ownerState:r},o,r)):e.style;t.push(n?ko((0,mo.internal_serializeStyles)(i),n):i)}}),t}return n?ko((0,mo.internal_serializeStyles)(i),n):i}var Ao={},To=d(Z),Ro=d(Ne),Mo=v;Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.alpha=Ko,Ao.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Wo(e),a=Wo(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Uo({type:"rgb",values:s})},Ao.colorChannel=void 0;var jo=Ao.darken=qo;Ao.decomposeColor=Wo,Ao.emphasize=Xo;var Io=Ao.getContrastRatio=function(e,t){const n=Go(e),r=Go(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Ao.getLuminance=Go,Ao.hexToRgb=Vo,Ao.hslToRgb=Ho;var Do=Ao.lighten=Yo;Ao.private_safeAlpha=function(e,t,n){try{return Ko(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Ao.private_safeColorChannel=void 0,Ao.private_safeDarken=function(e,t,n){try{return qo(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Ao.private_safeEmphasize=function(e,t,n){try{return Xo(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Ao.private_safeLighten=function(e,t,n){try{return Yo(e,t)}catch(t){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),e}},Ao.recomposeColor=Uo,Ao.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Wo(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var zo=Mo(To),Lo=Mo(Ro);function Fo(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,Lo.default)(e,t,n)}function Vo(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function Wo(e){if(e.type)return e;if("#"===e.charAt(0))return Wo(Vo(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,zo.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,zo.default)(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Bo=e=>{const t=Wo(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Ao.colorChannel=Bo;function Uo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ho(e){e=Wo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),Uo({type:s,values:c})}function Go(e){let t="hsl"===(e=Wo(e)).type||"hsla"===e.type?Wo(Ho(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ko(e,t){return e=Wo(e),t=Fo(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Uo(e)}function qo(e,t){if(e=Wo(e),t=Fo(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Uo(e)}function Yo(e,t){if(e=Wo(e),t=Fo(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Uo(e)}function Xo(e,t=.15){return Go(e)>.5?qo(e,t):Yo(e,t)}Ao.private_safeColorChannel=(e,t)=>{try{return Bo(e)}catch(n){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const Jo={black:"#000",white:"#fff"},Zo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Qo="#f3e5f5",ei="#ce93d8",ti="#ba68c8",ni="#ab47bc",ri="#9c27b0",oi="#7b1fa2",ii="#e57373",ai="#ef5350",si="#f44336",ci="#d32f2f",li="#c62828",ui="#ffb74d",fi="#ffa726",di="#ff9800",pi="#f57c00",mi="#e65100",hi="#e3f2fd",yi="#90caf9",gi="#42a5f5",vi="#1976d2",bi="#1565c0",wi="#4fc3f7",xi="#29b6f6",Ei="#03a9f4",Si="#0288d1",Oi="#01579b",ki="#81c784",Ci="#66bb6a",$i="#4caf50",_i="#388e3c",Pi="#2e7d32",Ni="#1b5e20",Ai=["mode","contrastThreshold","tonalOffset"],Ti={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Jo.white,default:Jo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ri={text:{primary:Jo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Jo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Mi(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Do(e.main,o):"dark"===t&&(e.dark=jo(e.main,i)))}function ji(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ae(e,Ai),i=e.primary||function(e="light"){return"dark"===e?{main:yi,light:hi,dark:gi}:{main:vi,light:gi,dark:bi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ei,light:Qo,dark:ni}:{main:ri,light:ti,dark:oi}}(t),s=e.error||function(e="light"){return"dark"===e?{main:si,light:ii,dark:ci}:{main:ci,light:ai,dark:li}}(t),c=e.info||function(e="light"){return"dark"===e?{main:xi,light:wi,dark:Si}:{main:Si,light:Ei,dark:Oi}}(t),l=e.success||function(e="light"){return"dark"===e?{main:Ci,light:ki,dark:_i}:{main:Pi,light:$i,dark:Ni}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:fi,light:ui,dark:pi}:{main:"#ed6c02",light:di,dark:mi}}(t);function f(e){const t=Io(e,Ri.text.primary)>=n?Ri.text.primary:Ti.text.primary;if("production"!==process.env.NODE_ENV){const n=Io(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const d=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=w({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:X(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:X(12,t?` (${t})`:"",JSON.stringify(e.main)));return Mi(e,"light",o,r),Mi(e,"dark",i,r),e.contrastText||(e.contrastText=f(e.main)),e},p={dark:Ri,light:Ti};"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return S(w({common:w({},Jo),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:l,name:"success"}),grey:Zo,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},p[t]),o)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Di={textTransform:"uppercase"},zi='"Roboto", "Helvetica", "Arial", sans-serif';function Li(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=zi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:f}=n,d=Ae(n,Ii);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,m=f||(e=>e/l*p+"rem"),h=(e,t,n,o,i)=>{return w({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===zi?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},y={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Di),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Di),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return S(w({htmlFontSize:l,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},y),d,{clone:!1})}function Fi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Vi=["none",Fi(0,2,1,-1,0,1,1,0,0,1,3,0),Fi(0,3,1,-2,0,2,2,0,0,1,5,0),Fi(0,3,3,-2,0,3,4,0,0,1,8,0),Fi(0,2,4,-1,0,4,5,0,0,1,10,0),Fi(0,3,5,-1,0,5,8,0,0,1,14,0),Fi(0,3,5,-1,0,6,10,0,0,1,18,0),Fi(0,4,5,-2,0,7,10,1,0,2,16,1),Fi(0,5,5,-3,0,8,10,1,0,3,14,2),Fi(0,5,6,-3,0,9,12,1,0,3,16,2),Fi(0,6,6,-3,0,10,14,1,0,4,18,3),Fi(0,6,7,-4,0,11,15,1,0,4,20,3),Fi(0,7,8,-4,0,12,17,2,0,5,22,4),Fi(0,7,8,-4,0,13,19,2,0,5,24,4),Fi(0,7,9,-4,0,14,21,2,0,5,26,4),Fi(0,8,9,-5,0,15,22,2,0,6,28,5),Fi(0,8,10,-5,0,16,24,2,0,6,30,5),Fi(0,8,11,-5,0,17,26,2,0,6,32,5),Fi(0,9,11,-5,0,18,28,2,0,7,34,6),Fi(0,9,12,-6,0,19,29,2,0,7,36,6),Fi(0,10,13,-6,0,20,31,3,0,8,38,7),Fi(0,10,13,-6,0,21,33,3,0,8,40,7),Fi(0,10,14,-6,0,22,35,3,0,8,42,7),Fi(0,11,14,-7,0,23,36,3,0,9,44,8),Fi(0,11,15,-7,0,24,38,3,0,9,46,8)],Wi=["duration","easing","delay"],Bi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ui={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hi(e){return`${Math.round(e)}ms`}function Gi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ki(e){const t=w({},Bi,e.easing),n=w({},Ui,e.duration);return w({getAutoHeightDuration:Gi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r,s=Ae(r,Wi);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),n(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),n(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof r&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Hi(o)} ${i} ${"string"==typeof a?a:Hi(a)}`).join(",")}},e,{easing:t,duration:n})}const qi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Xi=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ae(e,Yi);if(e.vars&&void 0===e.generateCssVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":X(18));const s=ji(r),c=io(e);let l=S(c,{mixins:(u=c.breakpoints,f=n,w({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:Vi.slice(),typography:Li(s,i),transitions:Ki(o),zIndex:w({},qi)});var u,f;if(l=S(l,a),l=t.reduce((e,t)=>S(e,t),l),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(-1!==e.indexOf(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=Pe("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(l.components).forEach(e=>{const n=l.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)})}return l.unstable_sxConfig=w({},eo,null==a?void 0:a.unstable_sxConfig),l.unstable_sx=function(e){return no({sx:e,theme:this})},l}();const Ji=uo({themeId:"$$material",defaultTheme:Xi,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function Zi(e){return Pe("MuiSvgIcon",e)}!function(e,t,n="Mui"){const r={};t.forEach(t=>{r[t]=Pe(e,t,n)})}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qi=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ea=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}({root:["root","inherit"!==t&&`color${le(t)}`,`fontSize${le(n)}`]},Zi,r)},ta=Ji("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,u,f,d,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}}),na=e.forwardRef(function(t,n){const r=je({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24"}=r,h=Ae(r,Qi),y=e.isValidElement(o)&&"svg"===o.type,g=w({},r,{color:a,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:y}),v={};d||(v.viewBox=m);const b=ea(g);return c(ta,w({as:l,className:Re(b.root,i),focusable:"false",color:f,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:n},v,h,y&&o.props,{ownerState:g,children:[y?o.props.children:o,p?s("title",{children:p}):null]}))});"production"!==process.env.NODE_ENV&&(na.propTypes={children:Y.node,classes:Y.object,className:Y.string,color:Y.oneOfType([Y.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Y.string]),component:Y.elementType,fontSize:Y.oneOfType([Y.oneOf(["inherit","large","medium","small"]),Y.string]),htmlColor:Y.string,inheritViewBox:Y.bool,shapeRendering:Y.string,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),titleAccess:Y.string,viewBox:Y.string}),na.muiName="SvgIcon";const ra={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),$e.configure(e)}};var oa,ia=Object.freeze({__proto__:null,capitalize:le,createChainedFunction:function(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})},createSvgIcon:function(t,n){function r(e,r){return s(na,w({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(r.displayName=`${n}Icon`),r.muiName=na.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,n,r,o,i)=>{const a=r||"<<anonymous>>",s=i||n;return void 0!==e[n]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,n){var r,o;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:fe,ownerWindow:function(e){return fe(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const n=t?w({},t.propTypes):null;return t=>(r,o,i,a,s,...c)=>{const l=s||o,u=null==n?void 0:n[l];if(u){const e=u(r,o,i,a,s,...c);if(e)return e}return void 0===r[o]||r[t]?null:new Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:de,unstable_ClassNameGenerator:ra,unstable_useEnhancedEffect:pe,unstable_useId:function(t){if(void 0!==he){const e=he();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect(()=>{null==n&&(me+=1,r(`mui-${me}`))},[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n),c=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect(()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[o,r,t]);const{current:a}=e.useRef(n);e.useEffect(()=>{i||Object.is(a,n)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))},[JSON.stringify(n)])}return[c,e.useCallback(e=>{i||s(e)},[])]},useEventCallback:function(t){const n=e.useRef(t);return pe(()=>{n.current=t}),e.useRef((...e)=>(0,n.current)(...e)).current},useForkRef:function(...t){return e.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{de(t,e)})},t)},useIsFocusVisible:function(){const t=e.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",xe,!0),t.addEventListener("mousedown",Ee,!0),t.addEventListener("pointerdown",Ee,!0),t.addEventListener("touchstart",Ee,!0),t.addEventListener("visibilitychange",Se,!0))},[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Oe(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(ve=!0,be.start(100,()=>{ve=!1}),n.current=!1,!0)},ref:t}}}),aa=d(ia);var sa=v;Object.defineProperty(y,"__esModule",{value:!0});var ca=y.default=void 0,la=sa((oa||(oa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=aa}(b)),b)),ua=a;function fa(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function da(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function pa(...e){return t=>{let n=!1;const r=e.map(e=>{const r=da(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():da(e[t],null)}}}}function ma(...t){return e.useCallback(pa(...t),t)}function ha(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;r=[...r,o];const c=n=>{const{scope:r,children:o,...c}=n,l=r?.[t]?.[a]||i,u=e.useMemo(()=>c,Object.values(c));return s(l.Provider,{value:u,children:o})};return c.displayName=n+"Provider",[c,function(r,s){const c=s?.[t]?.[a]||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},ya(o,...n)]}function ya(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function ga(t){const n=va(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,a=e.Children.toArray(o),c=a.find(wa);if(c){const t=c.props.children,o=a.map(n=>n===c?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return s(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return s(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function va(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?pa(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}ca=y.default=(0,la.default)((0,ua.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var ba=Symbol("radix.slottable");function wa(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===ba}var xa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=ga(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),s(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function Ea(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var Sa,Oa="dismissableLayer.update",ka="dismissableLayer.pointerDownOutside",Ca="dismissableLayer.focusOutside",$a=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_a=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...u}=t,f=e.useContext($a),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=e.useState({}),y=ma(n,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),w=d?g.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,S=function(t,n=globalThis?.document){const r=Ea(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){Aa(ka,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...f.branches].some(e=>e.contains(t));E&&!n&&(i?.(e),c?.(e),e.defaultPrevented||l?.())},m),O=function(t,n=globalThis?.document){const r=Ea(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){Aa(Ca,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(a?.(e),c?.(e),e.defaultPrevented||l?.())},m);return function(t,n=globalThis?.document){const r=Ea(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{w===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},m),e.useEffect(()=>{if(d)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Sa=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Na(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Sa)}},[d,m,r,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Na())},[d,f]),e.useEffect(()=>{const e=()=>h({});return document.addEventListener(Oa,e),()=>document.removeEventListener(Oa,e)},[]),s(xa.div,{...u,ref:y,style:{pointerEvents:x?E?"auto":"none":void 0,...t.style},onFocusCapture:fa(t.onFocusCapture,O.onFocusCapture),onBlurCapture:fa(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:fa(t.onPointerDownCapture,S.onPointerDownCapture)})});_a.displayName="DismissableLayer";var Pa=e.forwardRef((t,n)=>{const r=e.useContext($a),o=e.useRef(null),i=ma(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),s(xa.div,{...t,ref:i})});function Na(){const e=new CustomEvent(Oa);document.dispatchEvent(e)}function Aa(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}Pa.displayName="DismissableLayerBranch";var Ta=0;function Ra(){const 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}var Ma="focusScope.autoFocusOnMount",ja="focusScope.autoFocusOnUnmount",Ia={bubbles:!1,cancelable:!0},Da=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...c}=t,[l,u]=e.useState(null),f=Ea(i),d=Ea(a),p=e.useRef(null),m=ma(n,e=>u(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Va(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Va(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Va(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,l,h.paused]),e.useEffect(()=>{if(l){Wa.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Ma,Ia);l.addEventListener(Ma,f),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Va(r,{select:t}),document.activeElement!==n)return}((e=za(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Va(l))}return()=>{l.removeEventListener(Ma,f),setTimeout(()=>{const e=new CustomEvent(ja,Ia);l.addEventListener(ja,d),l.dispatchEvent(e),e.defaultPrevented||Va(t??document.body,{select:!0}),l.removeEventListener(ja,d),Wa.remove(h)},0)}}var e},[l,f,d,h]);const y=e.useCallback(e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=za(e),n=La(t,e),r=La(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Va(i,{select:!0})):(e.preventDefault(),r&&Va(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return s(xa.div,{tabIndex:-1,...c,ref:m,onKeyDown:y})});function za(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function La(e,t){for(const n of e)if(!Fa(n,{upTo:t}))return n}function Fa(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Va(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Da.displayName="FocusScope";var Wa=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ba(e,t),e.unshift(t)},remove(t){e=Ba(e,t),e[0]?.resume()}}}();function Ba(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ua=globalThis?.document?e.useLayoutEffect:()=>{},Ha=e[" useId ".trim().toString()]||(()=>{}),Ga=0;function Ka(t){const[n,r]=e.useState(Ha());return Ua(()=>{r(e=>e??String(Ga++))},[t]),t||(n?`radix-${n}`:"")}const qa=["top","right","bottom","left"],Ya=Math.min,Xa=Math.max,Ja=Math.round,Za=Math.floor,Qa=e=>({x:e,y:e}),es={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(e,t,n){return Xa(e,Ya(t,n))}function ns(e,t){return"function"==typeof e?e(t):e}function rs(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function is(e){return"x"===e?"y":"x"}function as(e){return"y"===e?"height":"width"}function ss(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function cs(e){return is(ss(e))}function ls(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const us=["left","right"],fs=["right","left"],ds=["top","bottom"],ps=["bottom","top"];function ms(e,t,n,r){const o=os(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?fs:us:t?us:fs;case"left":case"right":return t?ds:ps;default:return[]}}(rs(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ls)))),i}function hs(e){const t=rs(e);return es[t]+e.slice(t.length)}function ys(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function gs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vs(e,t,n){let{reference:r,floating:o}=e;const i=ss(t),a=cs(t),s=as(a),c=rs(t),l="y"===i,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(os(t)){case"start":p[a]-=d*(n&&l?-1:1);break;case"end":p[a]+=d*(n&&l?-1:1)}return p}async function bs(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ns(t,e),m=ys(p),h=s[d?"floating"===f?"reference":"floating":f],y=gs(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=gs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(y.top-w.top+m.top)/b.y,bottom:(w.bottom-y.bottom+m.bottom)/b.y,left:(y.left-w.left+m.left)/b.x,right:(w.right-y.right+m.right)/b.x}}function ws(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xs(e){return qa.some(t=>e[t]>=0)}const Es=new Set(["left","top"]);function Ss(){return"undefined"!=typeof window}function Os(e){return $s(e)?(e.nodeName||"").toLowerCase():"#document"}function ks(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Cs(e){var t;return null==(t=($s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $s(e){return!!Ss()&&(e instanceof Node||e instanceof ks(e).Node)}function _s(e){return!!Ss()&&(e instanceof Element||e instanceof ks(e).Element)}function Ps(e){return!!Ss()&&(e instanceof HTMLElement||e instanceof ks(e).HTMLElement)}function Ns(e){return!(!Ss()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ks(e).ShadowRoot)}function As(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Vs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ts(e){return/^(table|td|th)$/.test(Os(e))}function Rs(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Ms=/transform|translate|scale|rotate|perspective|filter/,js=/paint|layout|strict|content/,Is=e=>!!e&&"none"!==e;let Ds;function zs(e){const t=_s(e)?Vs(e):e;return Is(t.transform)||Is(t.translate)||Is(t.scale)||Is(t.rotate)||Is(t.perspective)||!Ls()&&(Is(t.backdropFilter)||Is(t.filter))||Ms.test(t.willChange||"")||js.test(t.contain||"")}function Ls(){return null==Ds&&(Ds="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ds}function Fs(e){return/^(html|body|#document)$/.test(Os(e))}function Vs(e){return ks(e).getComputedStyle(e)}function Ws(e){return _s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bs(e){if("html"===Os(e))return e;const t=e.assignedSlot||e.parentNode||Ns(e)&&e.host||Cs(e);return Ns(t)?t.host:t}function Us(e){const t=Bs(e);return Fs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ps(t)&&As(t)?t:Us(t)}function Hs(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Us(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ks(o);if(i){const e=Gs(a);return t.concat(a,a.visualViewport||[],As(o)?o:[],e&&n?Hs(e):[])}return t.concat(o,Hs(o,[],n))}function Gs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ks(e){const t=Vs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ps(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ja(n)!==i||Ja(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function qs(e){return _s(e)?e:e.contextElement}function Ys(e){const t=qs(e);if(!Ps(t))return Qa(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ks(t);let a=(i?Ja(n.width):n.width)/r,s=(i?Ja(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Xs=Qa(0);function Js(e){const t=ks(e);return Ls()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Xs}function Zs(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qs(e);let a=Qa(1);t&&(r?_s(r)&&(a=Ys(r)):a=Ys(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ks(e))&&t}(i,n,r)?Js(i):Qa(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=ks(i),t=r&&_s(r)?ks(r):r;let n=e,o=Gs(n);for(;o&&r&&t!==n;){const e=Ys(o),t=o.getBoundingClientRect(),r=Vs(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=a,n=ks(o),o=Gs(n)}}return gs({width:u,height:f,x:c,y:l})}function Qs(e,t){const n=Ws(e).scrollLeft;return t?t.left+n:Zs(Cs(e)).left+n}function ec(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Qs(e,n),y:n.top+t.scrollTop}}function tc(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ks(e),r=Cs(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Ls();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const l=Qs(r);if(l<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else l<=25&&(i+=l);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Cs(e),n=Ws(e),r=e.ownerDocument.body,o=Xa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qs(e);const s=-n.scrollTop;return"rtl"===Vs(r).direction&&(a+=Xa(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Cs(e));else if(_s(t))r=function(e,t){const n=Zs(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ps(e)?Ys(e):Qa(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Js(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gs(r)}function nc(e,t){const n=Bs(e);return!(n===t||!_s(n)||Fs(n))&&("fixed"===Vs(n).position||nc(n,t))}function rc(e,t,n){const r=Ps(t),o=Cs(t),i="fixed"===n,a=Zs(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Qa(0);function l(){c.x=Qs(o)}if(r||!r&&!i)if(("body"!==Os(t)||As(o))&&(s=Ws(t)),r){const e=Zs(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=!o||r||i?Qa(0):ec(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function oc(e){return"static"===Vs(e).position}function ic(e,t){if(!Ps(e)||"fixed"===Vs(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Cs(e)===n&&(n=n.ownerDocument.body),n}function ac(e,t){const n=ks(e);if(Rs(e))return n;if(!Ps(e)){let t=Bs(e);for(;t&&!Fs(t);){if(_s(t)&&!oc(t))return t;t=Bs(t)}return n}let r=ic(e,t);for(;r&&Ts(r)&&oc(r);)r=ic(r,t);return r&&Fs(r)&&oc(r)&&!zs(r)?n:r||function(e){let t=Bs(e);for(;Ps(t)&&!Fs(t);){if(zs(t))return t;if(Rs(t))return null;t=Bs(t)}return null}(e)||n}const sc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Cs(r),s=!!t&&Rs(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Qa(1);const u=Qa(0),f=Ps(r);if((f||!f&&!i)&&(("body"!==Os(r)||As(a))&&(c=Ws(r)),f)){const e=Zs(r);l=Ys(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!a||f||i?Qa(0):ec(a,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:Cs,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Rs(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Hs(e,[],!1).filter(e=>_s(e)&&"body"!==Os(e)),o=null;const i="fixed"===Vs(e).position;let a=i?Bs(e):e;for(;_s(a)&&!Fs(a);){const t=Vs(a),n=zs(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||As(a)&&!n&&nc(e,a))?r=r.filter(e=>e!==a):o=t,a=Bs(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=tc(t,a[0],o);let c=s.top,l=s.right,u=s.bottom,f=s.left;for(let e=1;e<a.length;e++){const n=tc(t,a[e],o);c=Xa(n.top,c),l=Ya(n.right,l),u=Ya(n.bottom,u),f=Xa(n.left,f)}return{width:l-f,height:u-c,x:f,y:c}},getOffsetParent:ac,getElementRects:async function(e){const t=this.getOffsetParent||ac,n=this.getDimensions,r=await n(e.floating);return{reference:rc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ks(e);return{width:t,height:n}},getScale:Ys,isElement:_s,isRTL:function(e){return"rtl"===Vs(e).direction}};function cc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lc(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=qs(e),u=o||i?[...l?Hs(l):[],...t?Hs(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=l&&s?function(e,t){let n,r=null;const o=Cs(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(s||t(),!d||!p)return;const m={rootMargin:-Za(f)+"px "+-Za(o.clientWidth-(u+d))+"px "+-Za(o.clientHeight-(f+p))+"px "+-Za(u)+"px",threshold:Xa(0,Ya(1,c))||1};let h=!0;function y(t){const r=t[0].intersectionRatio;if(r!==c){if(!h)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||cc(l,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,m)}r.observe(e)}(!0),i}(l,n):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),l&&!c&&m.observe(l),t&&m.observe(t));let h=c?Zs(e):null;return c&&function t(){const r=Zs(e);h&&!cc(h,r)&&n();h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(d)}}const uc=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=rs(n),s=os(n),c="y"===ss(n),l=Es.has(a)?-1:1,u=i&&c?-1:1,f=ns(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},fc=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ns(e,t),u={x:n,y:r},f=await i.detectOverflow(t,l),d=ss(rs(o)),p=is(d);let m=u[p],h=u[d];if(a){const e="y"===p?"bottom":"right";m=ts(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";h=ts(h+f["y"===d?"top":"left"],h,h-f[e])}const y=c.fn({...t,[p]:m,[d]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:a,[d]:s}}}}}},dc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=ns(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=rs(o),v=ss(s),b=rs(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(b||!h?[hs(s)]:function(e){const t=hs(e);return[ls(e),t,ls(t)]}(s)),E="none"!==m;!d&&E&&x.push(...ms(s,h,m,w));const S=[s,...x],O=await c.detectOverflow(t,y),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=os(e),o=cs(e),i=as(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=hs(a)),[a,hs(a)]}(o,a,w);k.push(O[e[0]],O[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every(e=>e<=0)){var $,_;const e=((null==($=i.flip)?void 0:$.index)||0)+1,t=S[e];if(t){if(!("alignment"===f&&v!==ss(t))||C.every(e=>ss(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==(_=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter(e=>{if(E){const t=ss(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},pc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=ns(e,t),u=await a.detectOverflow(t,l),f=rs(o),d=os(o),p="y"===ss(o),{width:m,height:h}=i.floating;let y,g;"top"===f||"bottom"===f?(y=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,y="end"===d?"top":"bottom");const v=h-u.top-u.bottom,b=m-u.left-u.right,w=Ya(h-u[y],v),x=Ya(m-u[g],b),E=!t.middlewareData.shift;let S=w,O=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),E&&!d){const e=Xa(u.left,0),t=Xa(u.right,0),n=Xa(u.top,0),r=Xa(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:Xa(u.left,u.right)):S=h-2*(0!==n||0!==r?n+r:Xa(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:S});const k=await a.getDimensions(s.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}},mc=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=ns(e,t);switch(o){case"referenceHidden":{const e=ws(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:xs(e)}}}case"escaped":{const e=ws(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:xs(e)}}}default:return{}}}}},hc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ns(e,t)||{};if(null==l)return{};const f=ys(u),d={x:n,y:r},p=cs(o),m=as(p),h=await a.getDimensions(l),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=E?E[b]:0;S&&await(null==a.isElement?void 0:a.isElement(E))||(S=s.floating[b]||i.floating[m]);const O=w/2-x/2,k=S/2-h[m]/2-1,C=Ya(f[g],k),$=Ya(f[v],k),_=C,P=S-h[m]-$,N=S/2-h[m]/2+O,A=ts(_,N,P),T=!c.arrow&&null!=os(o)&&N!==A&&i.reference[m]/2-(N<_?C:$)-h[m]/2<0,R=T?N<_?N-_:N-P:0;return{[p]:d[p]+R,data:{[p]:A,centerOffset:N-A-R,...T&&{alignmentOffset:R}},reset:T}}}),yc=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ns(e,t),u={x:n,y:r},f=ss(o),d=is(f);let p=u[d],m=u[f];const h=ns(s,t),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+y.mainAxis,n=i.reference[d]+i.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v;const e="y"===d?"width":"height",t=Es.has(rs(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:y.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[f])||0)-(t?y.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},gc=(e,t,n)=>{const r=new Map,o={platform:sc,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:bs},c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=vs(l,r,c),d=r,p=0;const m={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:y,fn:g}=h,{x:v,y:b,data:w,reset:x}=await g({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,f=null!=b?b:f,m[y]={...m[y],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=vs(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var vc="undefined"!=typeof document?o:function(){};function bc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!bc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!bc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function wc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xc(e,t){const n=wc(e);return Math.round(t*n)/n}function Ec(t){const n=e.useRef(t);return vc(()=>{n.current=t}),n}const Sc=(e,t)=>{const n=uc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oc=(e,t)=>{const n=fc(e);return{name:n.name,fn:n.fn,options:[e,t]}},kc=(e,t)=>({fn:yc(e).fn,options:[e,t]}),Cc=(e,t)=>{const n=dc(e);return{name:n.name,fn:n.fn,options:[e,t]}},$c=(e,t)=>{const n=pc(e);return{name:n.name,fn:n.fn,options:[e,t]}},_c=(e,t)=>{const n=mc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pc=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?hc({element:n.current,padding:r}).fn(t):{}:n?hc({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Nc=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return s(xa.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s("polygon",{points:"0,0 30,0 15,10"})})});Nc.displayName="Arrow";var Ac=Nc;var Tc="Popper",[Rc,Mc]=ha(Tc),[jc,Ic]=Rc(Tc),Dc=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return s(jc,{scope:n,anchor:o,onAnchorChange:i,children:r})};Dc.displayName=Tc;var zc="PopperAnchor",Lc=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Ic(zc,r),c=e.useRef(null),l=ma(n,c),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||c.current,e!==u.current&&a.onAnchorChange(u.current)}),o?null:s(xa.div,{...i,ref:l})});Lc.displayName=zc;var Fc="PopperContent",[Vc,Wc]=Rc(Fc),Bc=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...v}=t,b=Ic(Fc,r),[w,x]=e.useState(null),E=ma(n,e=>x(e)),[S,O]=e.useState(null),k=function(t){const[n,r]=e.useState(void 0);return Ua(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(S),C=k?.width??0,$=k?.height??0,_=o+("center"!==a?"-"+a:""),P="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},N=Array.isArray(d)?d:[d],A=N.length>0,T={padding:P,boundary:N.filter(Kc),altBoundary:A},{refs:R,floatingStyles:M,placement:j,isPositioned:I,middlewareData:D}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:u,open:f}=t,[d,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);bc(m,o)||h(o);const[y,g]=e.useState(null),[v,b]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),E=a||y,S=s||v,O=e.useRef(null),k=e.useRef(null),C=e.useRef(d),$=null!=u,_=Ec(u),P=Ec(i),N=Ec(f),A=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};P.current&&(e.platform=P.current),gc(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};T.current&&!bc(C.current,t)&&(C.current=t,l.flushSync(()=>{p(t)}))})},[m,n,r,P,N]);vc(()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);const T=e.useRef(!1);vc(()=>(T.current=!0,()=>{T.current=!1}),[]),vc(()=>{if(E&&(O.current=E),S&&(k.current=S),E&&S){if(_.current)return _.current(E,S,A);A()}},[E,S,A,_,$]);const R=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:S}),[E,S]),j=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=xc(M.floating,d.x),n=xc(M.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...wc(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,M.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:A,refs:R,elements:M,floatingStyles:j}),[d,A,R,M,j])}({strategy:"fixed",placement:_,whileElementsMounted:(...e)=>lc(...e,{animationFrame:"always"===y}),elements:{reference:b.anchor},middleware:[Sc({mainAxis:i+$,alignmentAxis:c}),f&&Oc({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?kc():void 0,...T}),f&&Cc({...T}),$c({...T,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),S&&Pc({element:S,padding:u}),qc({arrowWidth:C,arrowHeight:$}),h&&_c({strategy:"referenceHidden",...T})]}),[z,L]=Yc(j),F=Ea(g);Ua(()=>{I&&F?.()},[I,F]);const V=D.arrow?.x,W=D.arrow?.y,B=0!==D.arrow?.centerOffset,[U,H]=e.useState();return Ua(()=>{w&&H(window.getComputedStyle(w).zIndex)},[w]),s("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:I?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:s(Vc,{scope:r,placedSide:z,onArrowChange:O,arrowX:V,arrowY:W,shouldHideArrow:B,children:s(xa.div,{"data-side":z,"data-align":L,...v,ref:E,style:{...v.style,animation:I?void 0:"none"}})})})});Bc.displayName=Fc;var Uc="PopperArrow",Hc={top:"bottom",right:"left",bottom:"top",left:"right"},Gc=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Wc(Uc,n),i=Hc[o.placedSide];return s("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:s(Ac,{...r,ref:t,style:{...r.style,display:"block"}})})});function Kc(e){return null!==e}Gc.displayName=Uc;var qc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[c,l]=Yc(n),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===c?(p=i?u:`${f}px`,m=-s+"px"):"top"===c?(p=i?u:`${f}px`,m=`${r.floating.height+s}px`):"right"===c?(p=-s+"px",m=i?u:`${d}px`):"left"===c&&(p=`${r.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function Yc(e){const[t,n="center"]=e.split("-");return[t,n]}var Xc=Dc,Jc=Lc,Zc=Bc,Qc=Gc,el=e.forwardRef((t,n)=>{const{container:r,...o}=t,[i,a]=e.useState(!1);Ua(()=>a(!0),[]);const c=r||i&&globalThis?.document?.body;return c?u.createPortal(s(xa.div,{...o,ref:n}),c):null});el.displayName="Portal";var tl=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[c,l]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=nl(o.current);a.current="mounted"===c?e:"none"},[c]),Ua(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=nl(e);if(t)l("MOUNT");else if("none"===o||"none"===e?.display)l("UNMOUNT");else{l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,l]),Ua(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=nl(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(l("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(a.current=nl(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}l("ANIMATION_END")},[n,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=ma(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function nl(e){return e?.animationName||"none"}tl.displayName="Presence";var rl=e[" useInsertionEffect ".trim().toString()]||Ua;function ol({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),a=e.useRef(n);return rl(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),c=void 0!==t,l=c?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==c){const t=e?"controlled":"uncontrolled",n=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. 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.`)}n.current=c},[c,o])}const u=e.useCallback(e=>{if(c){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[c,t,a,s]);return[l,u]}var il=new WeakMap,al=new WeakMap,sl={},cl=0,ll=function(e){return e&&(e.host||ll(e.parentNode))},ul=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ll(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);sl[n]||(sl[n]=new WeakMap);var i=sl[n],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(il.get(e)||0)+1,l=(i.get(e)||0)+1;il.set(e,c),i.set(e,l),a.push(e),1===c&&o&&al.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),cl++,function(){a.forEach(function(e){var t=il.get(e)-1,o=i.get(e)-1;il.set(e,t),i.set(e,o),t||(al.has(e)||e.removeAttribute(r),al.delete(e)),o||e.removeAttribute(n)}),--cl||(il=new WeakMap,il=new WeakMap,al=new WeakMap,sl={})}},fl=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ul(r,o,n,"aria-hidden")):function(){return null}},dl=function(){return dl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dl.apply(this,arguments)};function pl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var ml="right-scroll-bar-position",hl="width-before-scroll-bar";function yl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gl="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,vl=new WeakMap;function bl(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach(function(e){return yl(e,t)})},(o=i(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return gl(function(){var t=vl.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||yl(e,null)}),r.forEach(function(e){n.has(e)||yl(e,o)})}vl.set(a,e)},[e]),a}function wl(e){return e}var xl=function(t){var n=t.sideCar,r=pl(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,dl({},r))};xl.isSideCarExport=!0;var El=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=wl);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=dl({async:!0,ssr:!1},e),t}(),Sl=function(){},Ol=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Sl,onWheelCapture:Sl,onTouchMoveCapture:Sl}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,f=t.enabled,d=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,y=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,w=t.gapMode,x=pl(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,S=bl([r,n]),O=dl(dl({},x),i);return e.createElement(e.Fragment,null,f&&e.createElement(E,{sideCar:El,removeScrollBar:u,shards:d,noRelative:m,noIsolation:h,inert:y,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(c),dl(dl({},O),{ref:S})):e.createElement(b,dl({},O,{className:l,ref:S}),c))});Ol.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ol.classNames={fullWidth:hl,zeroRight:ml};function kl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Cl=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=kl())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$l=function(){var t,n=(t=Cl(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},_l={left:0,top:0,right:0,gap:0},Pl=function(e){return parseInt(e||"",10)||0},Nl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return _l;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Pl(n),Pl(r),Pl(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Al=$l(),Tl="data-scroll-locked",Rl=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Tl,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ml," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(hl," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ml," .").concat(ml," {\n right: 0 ").concat(r,";\n }\n \n .").concat(hl," .").concat(hl," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Tl,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Ml=function(){var e=parseInt(document.body.getAttribute(Tl)||"0",10);return isFinite(e)?e:0},jl=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Tl,(Ml()+1).toString()),function(){var e=Ml()-1;e<=0?document.body.removeAttribute(Tl):document.body.setAttribute(Tl,e.toString())}},[]);var a=e.useMemo(function(){return Nl(i)},[i]);return e.createElement(Al,{styles:Rl(a,!n,i,r?"":"!important")})},Il=!1;if("undefined"!=typeof window)try{var Dl=Object.defineProperty({},"passive",{get:function(){return Il=!0,!0}});window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch(e){Il=!1}var zl=!!Il&&{passive:!1},Ll=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Fl=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Vl(e,r)){var o=Wl(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Vl=function(e,t){return"v"===e?function(e){return Ll(e,"overflowY")}(t):function(e){return Ll(e,"overflowX")}(t)},Wl=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Bl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ul=function(e){return[e.deltaX,e.deltaY]},Hl=function(e){return e&&"current"in e?e.current:e},Gl=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Kl=0,ql=[];function Yl(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Xl,Jl=(Xl=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Kl++)[0],a=e.useState($l)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(Hl),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=Bl(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Fl(f,u);if(!m)return!0;if(m?n=f:(n="v"===f?"h":"v",m=Fl(f,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=n),!n)return!0;var h=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),c=!1,l=i>0,u=0,f=0;do{if(!a)break;var d=Wl(e,a),p=d[0],m=d[1]-d[2]-o*p;(p||m)&&Vl(e,a)&&(u+=m,f+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(f)<1)&&(c=!0),c}(h,t,e,"h"===h?c:l)},[]),l=e.useCallback(function(e){var t=e;if(ql.length&&ql[ql.length-1]===a){var r="deltaY"in t?Ul(t):Bl(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Hl).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:Yl(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),f=e.useCallback(function(e){r.current=Bl(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,Ul(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Bl(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return ql.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,zl),document.addEventListener("touchmove",l,zl),document.addEventListener("touchstart",f,zl),function(){ql=ql.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,zl),document.removeEventListener("touchmove",l,zl),document.removeEventListener("touchstart",f,zl)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Gl(i)}):null,m?e.createElement(jl,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},El.useMedium(Xl),xl),Zl=e.forwardRef(function(t,n){return e.createElement(Ol,dl({},t,{ref:n,sideCar:Jl}))});Zl.classNames=Ol.classNames;var Ql="Popover",[eu]=ha(Ql,[Mc]),tu=Mc(),[nu,ru]=eu(Ql),ou=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:c=!1}=t,l=tu(n),u=e.useRef(null),[f,d]=e.useState(!1),[p,m]=ol({prop:o,defaultProp:i??!1,onChange:a,caller:Ql});return s(Xc,{...l,children:s(nu,{scope:n,contentId:Ka(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:c,children:r})})};ou.displayName=Ql;var iu="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,i=ru(iu,r),a=tu(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:l}=i;return e.useEffect(()=>(c(),()=>l()),[c,l]),s(Jc,{...a,...o,ref:n})}).displayName=iu;var au="PopoverTrigger",su=e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ru(au,n),i=tu(n),a=ma(t,o.triggerRef),c=s(xa.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bu(o.open),...r,ref:a,onClick:fa(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:s(Jc,{asChild:!0,...i,children:c})});su.displayName=au;var cu="PopoverPortal",[lu,uu]=eu(cu,{forceMount:void 0}),fu=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=ru(cu,t);return s(lu,{scope:t,forceMount:n,children:s(tl,{present:n||i.open,children:s(el,{asChild:!0,container:o,children:r})})})};fu.displayName=cu;var du="PopoverContent",pu=e.forwardRef((e,t)=>{const n=uu(du,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=ru(du,e.__scopePopover);return s(tl,{present:r||i.open,children:i.modal?s(hu,{...o,ref:t}):s(yu,{...o,ref:t})})});pu.displayName=du;var mu=ga("PopoverContent.RemoveScroll"),hu=e.forwardRef((t,n)=>{const r=ru(du,t.__scopePopover),o=e.useRef(null),i=ma(n,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return fl(e)},[]),s(Zl,{as:mu,allowPinchZoom:!0,children:s(gu,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fa(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:fa(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:fa(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),yu=e.forwardRef((t,n)=>{const r=ru(du,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return s(gu,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,a=r.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),gu=e.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,...p}=t,m=ru(du,r),h=tu(r);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ra()),document.body.insertAdjacentElement("beforeend",e[1]??Ra()),Ta++,()=>{1===Ta&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Ta--}},[]),s(Da,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:s(_a,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),children:s(Zc,{"data-state":bu(m.open),role:"dialog",id:m.contentId,...h,...p,ref:n,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),vu="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ru(vu,n);return s(xa.button,{type:"button",...r,ref:t,onClick:fa(e.onClick,()=>o.onOpenChange(!1))})}).displayName=vu;function bu(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tu(n);return s(Qc,{...o,...r,ref:t})}).displayName="PopoverArrow";var wu=ou,xu=su,Eu=fu,Su=pu;const Ou=e=>{const t=_u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ku(n,t)||$u(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},ku=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ku(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Cu=/^\[(.+)\]$/,$u=e=>{if(Cu.test(e)){const t=Cu.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_u=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Tu(Object.entries(e.classGroups),n).forEach(([e,n])=>{Pu(n,r,e,t)}),r},Pu=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Nu(t,e)).classGroupId=n)}if("function"==typeof e)return Au(e)?void Pu(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Pu(o,Nu(t,e),n,r)})})},Nu=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Au=e=>e.isThemeGetter,Tu=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Ru=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Mu=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===o&&(r||e.slice(l,l+i)===t)){n.push(e.slice(c,l)),c=l+i;continue}if("/"===u){a=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===n.length?e:e.substring(c),u=l.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}};return n?e=>n({className:e,parseClassName:a}):a},ju=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Iu=/\s+/;function Du(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=zu(e))&&(r&&(r+=" "),r+=t);return r}const zu=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zu(e[r]))&&(n&&(n+=" "),n+=t);return n};function Lu(e,...t){let n,r,o,i=function(s){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Ru(e.cacheSize),parseClassName:Mu(e),...Ou(e)}))(c),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Iu);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:f}=n(t);let d=Boolean(f),p=r(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=ju(c).join(":"),h=l?m+"!":m,y=h+p;if(i.includes(y))continue;i.push(y);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(Du.apply(null,arguments))}}const Fu=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Vu=/^\[(?:([a-z-]+):)?(.+)\]$/i,Wu=/^\d+\/\d+$/,Bu=new Set(["px","full","screen"]),Uu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ku=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yu=e=>Ju(e)||Bu.has(e)||Wu.test(e),Xu=e=>ff(e,"length",df),Ju=e=>Boolean(e)&&!Number.isNaN(Number(e)),Zu=e=>ff(e,"number",Ju),Qu=e=>Boolean(e)&&Number.isInteger(Number(e)),ef=e=>e.endsWith("%")&&Ju(e.slice(0,-1)),tf=e=>Vu.test(e),nf=e=>Uu.test(e),rf=new Set(["length","size","percentage"]),of=e=>ff(e,rf,pf),af=e=>ff(e,"position",pf),sf=new Set(["image","url"]),cf=e=>ff(e,sf,hf),lf=e=>ff(e,"",mf),uf=()=>!0,ff=(e,t,n)=>{const r=Vu.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},df=e=>Hu.test(e)&&!Gu.test(e),pf=()=>!1,mf=e=>Ku.test(e),hf=e=>qu.test(e),yf=()=>{const e=Fu("colors"),t=Fu("spacing"),n=Fu("blur"),r=Fu("brightness"),o=Fu("borderColor"),i=Fu("borderRadius"),a=Fu("borderSpacing"),s=Fu("borderWidth"),c=Fu("contrast"),l=Fu("grayscale"),u=Fu("hueRotate"),f=Fu("invert"),d=Fu("gap"),p=Fu("gradientColorStops"),m=Fu("gradientColorStopPositions"),h=Fu("inset"),y=Fu("margin"),g=Fu("opacity"),v=Fu("padding"),b=Fu("saturate"),w=Fu("scale"),x=Fu("sepia"),E=Fu("skew"),S=Fu("space"),O=Fu("translate"),k=()=>["auto",tf,t],C=()=>[tf,t],$=()=>["",Yu,Xu],_=()=>["auto",Ju,tf],P=()=>["","0",tf],N=()=>[Ju,tf];return{cacheSize:500,separator:":",theme:{colors:[uf],spacing:[Yu,Xu],blur:["none","",nf,tf],brightness:N(),borderColor:[e],borderRadius:["none","","full",nf,tf],borderSpacing:C(),borderWidth:$(),contrast:N(),grayscale:P(),hueRotate:N(),invert:P(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[ef,Xu],inset:k(),margin:k(),opacity:N(),padding:C(),saturate:N(),scale:N(),sepia:P(),skew:N(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",tf]}],container:["container"],columns:[{columns:[nf]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",tf]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qu,tf]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tf]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Qu,tf]}],"grid-cols":[{"grid-cols":[uf]}],"col-start-end":[{col:["auto",{span:["full",Qu,tf]},tf]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[uf]}],"row-start-end":[{row:["auto",{span:[Qu,tf]},tf]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tf]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tf]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",tf,t]}],"min-w":[{"min-w":[tf,t,"min","max","fit"]}],"max-w":[{"max-w":[tf,t,"none","full","min","max","fit","prose",{screen:[nf]},nf]}],h:[{h:[tf,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[tf,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[tf,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[tf,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nf,Xu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zu]}],"font-family":[{font:[uf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tf]}],"line-clamp":[{"line-clamp":["none",Ju,Zu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yu,tf]}],"list-image":[{"list-image":["none",tf]}],"list-style-type":[{list:["none","disc","decimal",tf]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yu,Xu]}],"underline-offset":[{"underline-offset":["auto",Yu,tf]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",af]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",of]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cf]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Yu,tf]}],"outline-w":[{outline:[Yu,Xu]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Yu,Xu]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nf,lf]}],"shadow-color":[{shadow:[uf]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",nf,tf]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tf]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",tf]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",tf]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Qu,tf]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tf]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tf]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tf]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Yu,Xu,Zu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},gf=Lu(yf);function vf(...e){return gf(Re(e))}const bf=wu,wf=xu,xf=e.forwardRef(({className:t,align:n="center",sideOffset:r=4,...o},i)=>e.createElement(Eu,null,e.createElement(Su,{ref:i,align:n,sideOffset:r,className:vf("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})));xf.displayName=Su.displayName;const Ef=({id:e,className:n,align:r,side:o,sideOffset:i=8,collisionPadding:a=8,visible:s,content:c,children:l,onPointerDownOutside:u,onOpenAutoFocus:f})=>t.createElement(bf,{open:s},t.createElement(wf,{asChild:!0},l),t.createElement(xf,{id:e,className:h("gyramais-popover-content",n),align:r,side:o,sideOffset:i,collisionPadding:a,onPointerDownOutside:u,onOpenAutoFocus:f},c)),Sf=({id:e,className:n,visible:r,align:o="start",side:i="bottom",sideOffset:a=6,width:s=320,maxHeight:c=480,trigger:l,children:u,onPointerDownOutside:f,onOpenAutoFocus:d})=>{const p="number"==typeof s?`${s}px`:s,m="number"==typeof c?`${c}px`:c;return t.createElement(Ef,{id:e,visible:r,align:o,side:i,sideOffset:a,className:h("gyramais-picker-popover",n),onPointerDownOutside:f,onOpenAutoFocus:d,content:t.createElement("div",{className:"gyramais-picker-popover-inner",style:{width:p,maxHeight:m}},u)},l)};Sf.Header=({className:e,title:n,searchPlaceholder:r,searchValue:o,onSearchChange:i,onSearchKeyDown:a,searchAutoFocus:s=!0,accessory:c})=>{const l=void 0!==r||void 0!==i;return t.createElement("div",{className:h("gyramais-picker-popover-head",e)},n&&t.createElement("div",{className:"gyramais-picker-popover-title"},n),(l||c)&&t.createElement("div",{className:"gyramais-picker-popover-head-row"},l&&t.createElement("div",{className:"gyramais-picker-popover-search"},t.createElement(ca,{className:"gyramais-picker-popover-search-icon"}),t.createElement("input",{type:"text",placeholder:r,value:o??"",onChange:e=>i?.(e.target.value),onKeyDown:a,autoFocus:s})),c&&t.createElement("div",{className:"gyramais-picker-popover-accessory"},c)))},Sf.Body=({className:e,children:n})=>t.createElement("div",{className:h("gyramais-picker-popover-body",e)},n),Sf.Footer=({className:e,children:n})=>t.createElement("div",{className:h("gyramais-picker-popover-foot",e)},n),Sf.Section=({className:e,title:n,children:r})=>t.createElement("div",{className:h("gyramais-picker-popover-section",e)},n&&t.createElement("div",{className:"gyramais-picker-popover-section-head"},n),r);export{Sf as PickerPopover};
45
45
  //# sourceMappingURL=index.js.map