!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4c0aa593-146c-463d-aac6-7463baa6ee5f",e._sentryDebugIdIdentifier="sentry-dbid-4c0aa593-146c-463d-aac6-7463baa6ee5f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2332],{9642:(e,t,n)=>{n.d(t,{Mb:()=>_,To:()=>T,CQ:()=>E,L4:()=>D,dG:()=>N,LL:()=>S,i_:()=>O});var i=n(17573),r=n(81280),a=n(51192),o=n(30639),s=n(67313),l=n(27997);let d=e=>(0,a.F4)(["from{background-color:",";backdrop-filter:blur(0);}to{background-color:",";backdrop-filter:blur(2px);}"],(0,i.m4)(e.theme.colors.text,0),(0,i.m4)(e.theme.colors.text,.7)),c=(0,a.F4)(["from{transform:translateY(-2rem);opacity:0;}to{transform:translateX(0);opacity:1;}"]),u=(0,a.F4)(["from{opacity:1;}to{opacity:0;}"]),p=(0,a.F4)(["from{transform:translateY(100%);}to{transform:translateX(0);}"]),m=(0,a.ZP)(l.ZA).withConfig({componentId:"sc-aa2f3045-0"})(["position:fixed;top:0;left:0;width:100vw;height:var(--visual-viewport-height);display:flex;flex-direction:column;justify-content:center;align-items:center;",";backdrop-filter:blur(2px);animation-duration:400ms;&[data-entering]{animation-name:",";}&[data-exiting]{animation-name:",";animation-direction:reverse;}&[data-is-tray]{justify-content:flex-end;align-items:stretch;}"],e=>{let{theme:t}=e;return(0,a.iv)(["z-index:",";background-color:",";"],t.tokens.layer.front,(0,i.m4)(t.colors.text,.7))},d,d),h=(0,a.ZP)(l.u_).withConfig({componentId:"sc-aa2f3045-1"})(["overflow:hidden;position:relative;outline:none;max-height:calc(var(--visual-viewport-height) * 0.8);",";animation-duration:inherit;&[data-entering]{animation-name:",";}&[data-exiting]{animation-name:",";}&[data-is-tray]{border-bottom-left-radius:0;border-bottom-right-radius:0;&[data-entering]{animation-name:",";}&[data-exiting]{animation-name:",";animation-direction:reverse;}}"],e=>{let{theme:t}=e;return(0,a.iv)(["padding:",";background-color:",";border-radius:",";box-shadow:",";"],t.tokens.spacing[4],t.colors.background,t.tokens.borderRadius.lg,t.tokens.shadows.card)},c,u,p,p);var g=n(85893),f=n(6335),b=n(67294),x=n(31666);let v=e=>{e.addEventListener("touchend",e=>{var t,n;(null===(t=e.currentTarget)||void 0===t?void 0:t.getAttribute("type"))!=="submit"&&"string"!=typeof(null===(n=e.currentTarget)||void 0===n?void 0:n.getAttribute("href"))&&e.preventDefault()},{passive:!1})},k="undefined"!=typeof DocumentFragment?new DocumentFragment:null;var y=n(54692),w=n(43024),j=n(9659),C=n(73935),I=n(14295),Z=n(39234),L=n(12665);let z=(0,b.forwardRef)((e,t)=>{let{isTray:n,children:i,...r}=e,a=(0,L.Z)("(max-width: ".concat(Z.NW.MD-1,"px)")),o=void 0!==n?n:a;return(0,g.jsx)(m,{ref:t,...r,"data-is-tray":o||null,children:(0,g.jsx)(h,{"data-is-tray":o||null,children:i})})}),P=(0,a.iv)(["display:block;",""],e=>{let{theme:t}=e;return(0,a.iv)(["font-size:0.8em;color:",";"],t.colors.layout.dark)}),_=(0,a.ZP)(e=>{let{children:t,selected:n,...i}=e;return(0,g.jsxs)("span",{...i,children:[(0,g.jsx)("span",{children:t}),n&&(0,g.jsx)(f.Z,{icon:"Checkmark",size:".9em"})]})}).withConfig({componentId:"sc-6fe82924-0"})(["display:flex;justify-content:space-between;align-items:center;gap:",";","{width:1em;height:1em;}",""],e=>{let{theme:{tokens:t}}=e;return t.spacing[2]},s.x,e=>!e.selected&&(0,a.iv)(["padding-right:",";"],e=>{let{theme:{tokens:t}}=e;return"calc(".concat(t.spacing[3]," + 1em)")})),D=(0,a.ZP)(r.Ph).withConfig({componentId:"sc-6fe82924-1"})([".react-aria-Button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:",";user-select:none;"," &[data-focus-visible]{outline:"," auto 1px;}&:not([data-focus-visible]){outline:none;}&[data-hovered]{background-color:",';}}.react-aria-Text[slot="description"]{font-size:0.8em;}.react-aria-SelectValue{text-align:left;&[data-placeholder]{','}.react-aria-Text[slot="description"]{',"}","{padding-right:0;}}"],e=>{let{theme:{tokens:t}}=e;return t.spacing[3]},e=>{let{theme:t}=e;return(0,a.iv)(["padding-block:",";padding-inline:"," ",";border:1px solid ",";border-radius:",";"],t.tokens.spacing[2],t.tokens.spacing[2],t.tokens.spacing[1],t.colors.layout.medium,t.tokens.borderRadius.normal)},e=>{let{theme:t}=e;return t.colors.brand.base},e=>{let{theme:{colors:t}}=e;return t.layout.lighter},e=>{let{theme:t}=e;return(0,a.iv)(["color:",";"],t.colors.layout.dark)},P,_),F=(0,a.iv)([".react-aria-ListBox{max-height:300px;overflow:auto;outline:none;",";}.react-aria-ListBoxItem{user-select:none;font-variant-numeric:tabular-nums;"," &:not([data-focus-visible]){outline:none;}&[data-focused]{","}&[data-disabled]{opacity:0.5;}}a.react-aria-ListBoxItem{display:block;color:inherit;text-decoration:none;&[data-disabled]{cursor:default;}}.react-aria-Section{+ .react-aria-Section{","}}.react-aria-Header{",'}.react-aria-Text[slot="description"]{'," ","}"],e=>{let{theme:t}=e;return(0,a.iv)(["padding:",";background-color:",";border:1px solid ",";border-radius:",";box-shadow:",";"],t.tokens.spacing[1],t.colors.background,t.colors.layout.medium,t.tokens.borderRadius.normal,t.tokens.shadows.card)},e=>{let{theme:t}=e;return(0,a.iv)(["padding:0 ",";border-radius:",";"],t.tokens.spacing[1],t.tokens.borderRadius.base)},e=>{let{theme:t}=e;return(0,a.iv)(["background-color:",";"],t.colors.layout.light)},e=>{let{theme:t}=e;return(0,a.iv)(["margin-top:",";"],t.tokens.spacing[1])},e=>{let{theme:t}=e;return(0,a.iv)(["padding-inline:",";font-size:",";font-weight:",";"],t.tokens.spacing[1],t.tokens.fontSize.sm,t.tokens.fontWeight.bold)},P,e=>{let{theme:t}=e;return(0,a.iv)(["margin-top:calc("," * -1);"],t.tokens.spacing[2])}),O=(0,a.F4)(["from{opacity:0;transform:translate3d(0,-0.5rem,0) scale3d(0.95,0.95,0.95);}"]),N=(0,a.ZP)(e=>{let t=(0,b.useContext)(r.J2),n=(0,b.useRef)(null);return(0,b.useEffect)(()=>{(null==t?void 0:t.isOpen)&&(null==n?void 0:n.current)&&v(n.current)},[null==t?void 0:t.isOpen]),(0,g.jsx)(x.J,{...e,ref:n})}).attrs(e=>{let{theme:t,offset:n}=e;return{offset:n||16*parseFloat(t.tokens.spacing[1])}}).withConfig({componentId:"sc-6fe82924-2"})(["min-width:var(--trigger-width);&[data-entering]{animation-name:",";animation-duration:150ms;}",";"],O,F),R=e=>(0,a.F4)(["from{background-color:",";backdrop-filter:blur(0);}to{background-color:",";backdrop-filter:blur(2px);}"],(0,i.m4)(e.theme.colors.text,0),(0,i.m4)(e.theme.colors.text,.4)),S=(0,a.ZP)(e=>{let{label:t,className:n,children:i}=e,a=(0,b.useContext)(r.J2),o=(0,b.useRef)(null),s=(0,b.useRef)(null);return((0,b.useEffect)(()=>{(null==a?void 0:a.isOpen)&&(null==s?void 0:s.current)&&v(s.current)},[null==a?void 0:a.isOpen]),(null==a?void 0:a.isOpen)||o.current)?(0,g.jsxs)(z,{ref:o,isOpen:a.isOpen,onOpenChange:e=>!e&&a.close(),isDismissable:!0,isTray:!0,className:n,children:[(0,g.jsxs)(E,{children:[(0,g.jsx)(y._,{children:t}),(0,g.jsx)(w.zt,{values:[[j.b,null]],children:(0,g.jsx)(I.Z,{variant:"default",onClick:()=>a.close(),children:(0,g.jsx)(f.Z,{icon:"Close",size:16,color:"currentColor"})})})]}),(0,g.jsx)(T,{ref:s,children:i})]}):C.createPortal(i,k)}).withConfig({componentId:"sc-6fe82924-3"})(["background-color:",";backdrop-filter:blur(2px);&[data-entering]{animation-name:",";}&[data-exiting]{animation-name:",";animation-direction:reverse;}","{display:flex;flex-direction:column;padding:0;max-height:calc(var(--visual-viewport-height) * 0.65);.react-aria-ListBox{padding:0;border:none;border-radius:0;box-shadow:none;}.react-aria-ListBoxItem{","}}",";"],e=>{let{theme:{colors:t}}=e;return(0,i.m4)(t.text,.4)},R,R,h,e=>{let{theme:t}=e;return(0,a.iv)(["padding:"," ",";border-radius:0;line-height:",";"],t.tokens.spacing[2],t.tokens.spacing[4],t.tokens.leading.tight)},F),E=a.ZP.div.withConfig({componentId:"sc-6fe82924-4"})(["display:flex;justify-content:space-between;align-items:center;",""],e=>{let{theme:t}=e;return(0,a.iv)(["padding:",";border-bottom:1px solid ",";.react-aria-Label{margin:0;font-size:",";}","{height:",";width:",";padding:0;}"],t.tokens.spacing[4],t.colors.layout.light,t.tokens.fontSize.lg,o.Sn,e=>{let{theme:t}=e;return t.tokens.spacing[10]},e=>{let{theme:t}=e;return t.tokens.spacing[10]})}),T=a.ZP.div.withConfig({componentId:"sc-6fe82924-5"})(["overflow:auto;"])},92332:(e,t,n)=>{n.d(t,{ZP:()=>x});var i=n(85893),r=n(77e3),a=n(90258),o=n(28405),s=n(58086),l=n(62533),d=n(54692),c=n(9659),u=n(81280),p=n(39234),m=n(12665),h=n(6335),g=n(9642);function f(e){return e.length>0&&Object.prototype.hasOwnProperty.call(e[0],"options")}let b=(e,t)=>{let{value:n,label:o,description:s,disabled:l,...d}=e;return t?(0,i.jsx)(r.m9,{id:n,textValue:o,...d,"data-testid":"select-option",children:n=>t(e,n)}):e.description?(0,i.jsx)(r.m9,{id:n,textValue:o,...d,"data-testid":"select-option",children:e=>{let{isSelected:t}=e;return(0,i.jsxs)(g.Mb,{selected:t,children:[(0,i.jsx)(a.x,{slot:"label",children:o}),(0,i.jsx)(a.x,{slot:"description",children:s})]})}}):(0,i.jsx)(r.m9,{id:n,textValue:o,...d,"data-testid":"select-option",children:e=>{let{isSelected:t}=e;return(0,i.jsx)(g.Mb,{selected:t,children:o})}})},x=e=>{let{label:t,options:n,selectedValue:x,description:v,onChange:k,renderItem:y,renderSelectedValue:w,className:j,popoverPlacement:C="bottom start",popoverOffset:I,...Z}=e,L=(0,m.Z)("(max-width: ".concat(p.NW.MD-1,"px)")),z=(f(n)?n.map(e=>e.options).flat():n).filter(e=>e.disabled).map(e=>e.value),P=f(n)?(0,i.jsx)(r.wb,{items:n,children:e=>(0,i.jsxs)(o.$0,{id:e.label,children:[(0,i.jsx)(s.h,{children:e.label}),(0,i.jsx)(l.FE,{items:e.options,children:e=>b(e,y)})]})}):(0,i.jsx)(r.wb,{items:n,children:e=>b(e,y)});return(0,i.jsx)("div",{className:j,children:(0,i.jsxs)(g.L4,{...Z,selectedKey:x,disabledKeys:z,placeholder:Z.placeholder||" ",onSelectionChange:e=>null==k?void 0:k(e),children:[t&&(0,i.jsx)(d._,{children:t}),(0,i.jsxs)(c.z,{children:[(0,i.jsx)(u.ki,{children:w?e=>w(e):void 0}),n.length>1&&(0,i.jsx)(h.Z,{icon:"ChevronSort",size:".9em"})]}),!!v&&(0,i.jsx)(a.x,{slot:"description",children:v}),L?(0,i.jsx)(g.LL,{label:t||Z["aria-label"]||Z.placeholder,className:j,children:P}):(0,i.jsx)(g.dG,{placement:C,offset:I,className:j,"data-testid":"select-options",children:P})]})})}}}]);