@socotra/ec-react-components 2.19.0-next.2 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -93,7 +93,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
93
93
  */var Uk;function Q9e(){return Uk||(Uk=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(H){return typeof H=="string"||typeof H=="function"||H===o||H===d||H===s||H===i||H===p||H===m||typeof H=="object"&&H!==null&&(H.$$typeof===h||H.$$typeof===b||H.$$typeof===l||H.$$typeof===c||H.$$typeof===f||H.$$typeof===v||H.$$typeof===$||H.$$typeof===C||H.$$typeof===y)}function x(H){if(typeof H=="object"&&H!==null){var je=H.$$typeof;switch(je){case t:var ft=H.type;switch(ft){case u:case d:case o:case s:case i:case p:return ft;default:var Et=ft&&ft.$$typeof;switch(Et){case c:case f:case h:case b:case l:return Et;default:return je}}case r:return je}}}var w=u,S=d,P=c,A=l,I=t,O=f,j=o,V=h,k=b,Z=r,U=s,X=i,ee=p,te=!1;function de(H){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(H)||x(H)===u}function G(H){return x(H)===d}function N(H){return x(H)===c}function B(H){return x(H)===l}function L(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function E(H){return x(H)===f}function _(H){return x(H)===o}function M(H){return x(H)===h}function z(H){return x(H)===b}function R(H){return x(H)===r}function W(H){return x(H)===s}function Q(H){return x(H)===i}function fe(H){return x(H)===p}rt.AsyncMode=w,rt.ConcurrentMode=S,rt.ContextConsumer=P,rt.ContextProvider=A,rt.Element=I,rt.ForwardRef=O,rt.Fragment=j,rt.Lazy=V,rt.Memo=k,rt.Portal=Z,rt.Profiler=U,rt.StrictMode=X,rt.Suspense=ee,rt.isAsyncMode=de,rt.isConcurrentMode=G,rt.isContextConsumer=N,rt.isContextProvider=B,rt.isElement=L,rt.isForwardRef=E,rt.isFragment=_,rt.isLazy=M,rt.isMemo=z,rt.isPortal=R,rt.isProfiler=W,rt.isStrictMode=Q,rt.isSuspense=fe,rt.isValidElementType=T,rt.typeOf=x}()),rt}process.env.NODE_ENV==="production"?X$.exports=K9e():X$.exports=Q9e();var eBe=X$.exports,Hk=eBe,tBe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rBe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xk={};Xk[Hk.ForwardRef]=tBe,Xk[Hk.Memo]=rBe;var aBe=!0;function nBe(e,t,r){var o="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(o+=i+" ")}),o}var Yk=function(t,r,o){var i=t.key+"-"+r.name;(o===!1||aBe===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},oBe=function(t,r,o){Yk(t,r,o);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function iBe(e){for(var t=0,r,o=0,i=e.length;i>=4;++o,i-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sBe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lBe=/[A-Z]|^ms/g,cBe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jk=function(t){return t.charCodeAt(1)===45},Kk=function(t){return t!=null&&typeof t!="boolean"},Y$=z9e(function(e){return Jk(e)?e:e.replace(lBe,"-$&").toLowerCase()}),Qk=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(cBe,function(o,i,s){return pn={name:i,styles:s,next:pn},i})}return sBe[t]!==1&&!Jk(t)&&typeof r=="number"&&r!==0?r+"px":r};function Pd(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return pn={name:i.name,styles:i.styles,next:pn},i.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)pn={name:l.name,styles:l.styles,next:pn},l=l.next;var c=s.styles+";";return c}return uBe(e,t,r)}case"function":{if(e!==void 0){var u=pn,d=r(e);return pn=u,Pd(e,t,d)}break}}var f=r;return f}function uBe(e,t,r){var o="";if(Array.isArray(r))for(var i=0;i<r.length;i++)o+=Pd(e,t,r[i])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;Kk(c)&&(o+=Y$(s)+":"+Qk(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var u=0;u<l.length;u++)Kk(l[u])&&(o+=Y$(s)+":"+Qk(s,l[u])+";");else{var d=Pd(e,t,l);switch(s){case"animation":case"animationName":{o+=Y$(s)+":"+d+";";break}default:o+=s+"{"+d+"}"}}}return o}var eN=/label:\s*([^\s;{]+)\s*(;|$)/g,pn;function tN(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";pn=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,i+=Pd(r,t,s);else{var l=s;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=Pd(r,t,e[c]),o){var u=s;i+=u[c]}eN.lastIndex=0;for(var d="",f;(f=eN.exec(i))!==null;)d+="-"+f[1];var p=iBe(i)+d;return{name:p,styles:i,next:pn}}var dBe=function(t){return t()},fBe=F.useInsertionEffect?F.useInsertionEffect:!1,pBe=fBe||dBe,rN=F.createContext(typeof HTMLElement<"u"?J9e({key:"css"}):null);rN.Provider;var mBe=function(t){return g.forwardRef(function(r,o){var i=g.useContext(rN);return t(r,i,o)})},gBe=F.createContext({}),J$={}.hasOwnProperty,K$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hBe=function(t,r){var o={};for(var i in r)J$.call(r,i)&&(o[i]=r[i]);return o[K$]=t,o},bBe=function(t){var r=t.cache,o=t.serialized,i=t.isStringTag;return Yk(r,o,i),pBe(function(){return oBe(r,o,i)}),null},yBe=mBe(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var i=e[K$],s=[o],l="";typeof e.className=="string"?l=nBe(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var c=tN(s,void 0,F.useContext(gBe));l+=t.key+"-"+c.name;var u={};for(var d in e)J$.call(e,d)&&d!=="css"&&d!==K$&&(u[d]=e[d]);return u.className=l,r&&(u.ref=r),F.createElement(F.Fragment,null,F.createElement(bBe,{cache:t,serialized:c,isStringTag:typeof i=="string"}),F.createElement(i,u))}),vBe=yBe,ye=function(t,r){var o=arguments;if(r==null||!J$.call(r,"css"))return F.createElement.apply(void 0,o);var i=o.length,s=new Array(i);s[0]=vBe,s[1]=hBe(t,r);for(var l=2;l<i;l++)s[l]=o[l];return F.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ye||(ye={}));function Q$(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return tN(t)}function $Be(){var e=Q$.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_"}}}function CBe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const xBe=Math.min,wBe=Math.max,Lg=Math.round,Og=Math.floor,Bg=e=>({x:e,y:e});function ABe(e){const{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function Mg(){return typeof window<"u"}function aN(e){return oN(e)?(e.nodeName||"").toLowerCase():"#document"}function Qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nN(e){var t;return(t=(oN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oN(e){return Mg()?e instanceof Node||e instanceof Qn(e).Node:!1}function EBe(e){return Mg()?e instanceof Element||e instanceof Qn(e).Element:!1}function e4(e){return Mg()?e instanceof HTMLElement||e instanceof Qn(e).HTMLElement:!1}function iN(e){return!Mg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qn(e).ShadowRoot}function sN(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=t4(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(i)}function TBe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _Be(e){return["html","body","#document"].includes(aN(e))}function t4(e){return Qn(e).getComputedStyle(e)}function DBe(e){if(aN(e)==="html")return e;const t=e.assignedSlot||e.parentNode||iN(e)&&e.host||nN(e);return iN(t)?t.host:t}function lN(e){const t=DBe(e);return _Be(t)?e.ownerDocument?e.ownerDocument.body:e.body:e4(t)&&sN(t)?t:lN(t)}function Fg(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=lN(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),l=Qn(i);if(s){const c=r4(l);return t.concat(l,l.visualViewport||[],sN(i)?i:[],c&&r?Fg(c):[])}return t.concat(i,Fg(i,[],r))}function r4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function SBe(e){const t=t4(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=e4(e),s=i?e.offsetWidth:r,l=i?e.offsetHeight:o,c=Lg(r)!==s||Lg(o)!==l;return c&&(r=s,o=l),{width:r,height:o,$:c}}function a4(e){return EBe(e)?e:e.contextElement}function cN(e){const t=a4(e);if(!e4(t))return Bg(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:s}=SBe(t);let l=(s?Lg(r.width):r.width)/o,c=(s?Lg(r.height):r.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const PBe=Bg(0);function IBe(e){const t=Qn(e);return!TBe()||!t.visualViewport?PBe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jBe(e,t,r){return!1}function uN(e,t,r,o){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),s=a4(e);let l=Bg(1);t&&(l=cN(e));const c=jBe()?IBe(s):Bg(0);let u=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,f=i.width/l.x,p=i.height/l.y;if(s){const m=Qn(s),b=o;let h=m,y=r4(h);for(;y&&o&&b!==h;){const v=cN(y),$=y.getBoundingClientRect(),C=t4(y),T=$.left+(y.clientLeft+parseFloat(C.paddingLeft))*v.x,x=$.top+(y.clientTop+parseFloat(C.paddingTop))*v.y;u*=v.x,d*=v.y,f*=v.x,p*=v.y,u+=T,d+=x,h=Qn(y),y=r4(h)}}return ABe({width:f,height:p,x:u,y:d})}function dN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kBe(e,t){let r=null,o;const i=nN(e);function s(){var c;clearTimeout(o),(c=r)==null||c.disconnect(),r=null}function l(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:b}=d;if(c||t(),!m||!b)return;const h=Og(p),y=Og(i.clientWidth-(f+m)),v=Og(i.clientHeight-(p+b)),$=Og(f),T={rootMargin:-h+"px "+-y+"px "+-v+"px "+-$+"px",threshold:wBe(0,xBe(1,u))||1};let x=!0;function w(S){const P=S[0].intersectionRatio;if(P!==u){if(!x)return l();P?l(!1,P):o=setTimeout(()=>{l(!1,1e-7)},1e3)}P===1&&!dN(d,e.getBoundingClientRect())&&l(),x=!1}try{r=new IntersectionObserver(w,{...T,root:i.ownerDocument})}catch{r=new IntersectionObserver(w,T)}r.observe(e)}return l(!0),s}function NBe(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,d=a4(e),f=i||s?[...d?Fg(d):[],...Fg(t)]:[];f.forEach($=>{i&&$.addEventListener("scroll",r,{passive:!0}),s&&$.addEventListener("resize",r)});const p=d&&c?kBe(d,r):null;let m=-1,b=null;l&&(b=new ResizeObserver($=>{let[C]=$;C&&C.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var T;(T=b)==null||T.observe(t)})),r()}),d&&!u&&b.observe(d),b.observe(t));let h,y=u?uN(e):null;u&&v();function v(){const $=uN(e);y&&!dN(y,$)&&r(),y=$,h=requestAnimationFrame(v)}return r(),()=>{var $;f.forEach(C=>{i&&C.removeEventListener("scroll",r),s&&C.removeEventListener("resize",r)}),p==null||p(),($=b)==null||$.disconnect(),b=null,u&&cancelAnimationFrame(h)}}var n4=g.useLayoutEffect,LBe=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Rg=function(){};function OBe(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function BBe(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var s=[].concat(o);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&s.push("".concat(OBe(e,l)));return s.filter(function(c){return c}).map(function(c){return String(c).trim()}).join(" ")}var fN=function(t){return UBe(t)?t.filter(Boolean):qi(t)==="object"&&t!==null?[t]:[]},pN=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=un(t,LBe);return be({},r)},_t=function(t,r,o){var i=t.cx,s=t.getStyles,l=t.getClassNames,c=t.className;return{css:s(r,t),className:i(o??{},l(r,t),c)}};function MBe(e,t,r){if(r){var o=r(e,t);if(typeof o=="string")return o}return e}function Vg(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function FBe(e){return Vg(e)?window.innerHeight:e.clientHeight}function mN(e){return Vg(e)?window.pageYOffset:e.scrollTop}function Gg(e,t){if(Vg(e)){window.scrollTo(0,t);return}e.scrollTop=t}function RBe(e){var t=getComputedStyle(e),r=t.position==="absolute",o=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(r&&t.position==="static")&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function VBe(e,t,r,o){return r*((e=e/o-1)*e*e+1)+t}function zg(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Rg,i=mN(e),s=t-i,l=10,c=0;function u(){c+=l;var d=VBe(c,i,s,r);Gg(e,d),c<r?window.requestAnimationFrame(u):o(e)}u()}function gN(e,t){var r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>r.bottom?Gg(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<r.top&&Gg(e,Math.max(t.offsetTop-i,0))}function GBe(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function hN(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function zBe(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var bN=!1,ZBe={get passive(){return bN=!0}},Zg=typeof window<"u"?window:{};Zg.addEventListener&&Zg.removeEventListener&&(Zg.addEventListener("p",Rg,ZBe),Zg.removeEventListener("p",Rg,!1));var WBe=bN;function qBe(e){return e!=null}function UBe(e){return Array.isArray(e)}function Wg(e,t,r){return e?t:r}function $qe(e){return e}function Cqe(e){return e}var HBe=function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var s=Object.entries(t).filter(function(l){var c=Zt(l,1),u=c[0];return!o.includes(u)});return s.reduce(function(l,c){var u=Zt(c,2),d=u[0],f=u[1];return l[d]=f,l},{})},XBe=["children","innerProps"],YBe=["children","innerProps"];function JBe(e){var t=e.maxHeight,r=e.menuEl,o=e.minHeight,i=e.placement,s=e.shouldScroll,l=e.isFixedPosition,c=e.controlHeight,u=RBe(r),d={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return d;var f=u.getBoundingClientRect(),p=f.height,m=r.getBoundingClientRect(),b=m.bottom,h=m.height,y=m.top,v=r.offsetParent.getBoundingClientRect(),$=v.top,C=l?window.innerHeight:FBe(u),T=mN(u),x=parseInt(getComputedStyle(r).marginBottom,10),w=parseInt(getComputedStyle(r).marginTop,10),S=$-w,P=C-y,A=S+T,I=p-T-y,O=b-C+T+x,j=T+y-w,V=160;switch(i){case"auto":case"bottom":if(P>=h)return{placement:"bottom",maxHeight:t};if(I>=h&&!l)return s&&zg(u,O,V),{placement:"bottom",maxHeight:t};if(!l&&I>=o||l&&P>=o){s&&zg(u,O,V);var k=l?P-x:I-x;return{placement:"bottom",maxHeight:k}}if(i==="auto"||l){var Z=t,U=l?S:A;return U>=o&&(Z=Math.min(U-x-c,t)),{placement:"top",maxHeight:Z}}if(i==="bottom")return s&&Gg(u,O),{placement:"bottom",maxHeight:t};break;case"top":if(S>=h)return{placement:"top",maxHeight:t};if(A>=h&&!l)return s&&zg(u,j,V),{placement:"top",maxHeight:t};if(!l&&A>=o||l&&S>=o){var X=t;return(!l&&A>=o||l&&S>=o)&&(X=l?S-w:A-w),s&&zg(u,j,V),{placement:"top",maxHeight:X}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return d}function KBe(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var yN=function(t){return t==="auto"?"bottom":t},QBe=function(t,r){var o,i=t.placement,s=t.theme,l=s.borderRadius,c=s.spacing,u=s.colors;return be((o={label:"menu"},kl(o,KBe(i),"100%"),kl(o,"position","absolute"),kl(o,"width","100%"),kl(o,"zIndex",1),o),r?{}:{backgroundColor:u.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:c.menuGutter,marginTop:c.menuGutter})},vN=g.createContext(null),e6e=function(t){var r=t.children,o=t.minMenuHeight,i=t.maxMenuHeight,s=t.menuPlacement,l=t.menuPosition,c=t.menuShouldScrollIntoView,u=t.theme,d=g.useContext(vN)||{},f=d.setPortalPlacement,p=g.useRef(null),m=g.useState(i),b=Zt(m,2),h=b[0],y=b[1],v=g.useState(null),$=Zt(v,2),C=$[0],T=$[1],x=u.spacing.controlHeight;return n4(function(){var w=p.current;if(w){var S=l==="fixed",P=c&&!S,A=JBe({maxHeight:i,menuEl:w,minHeight:o,placement:s,shouldScroll:P,isFixedPosition:S,controlHeight:x});y(A.maxHeight),T(A.placement),f==null||f(A.placement)}},[i,s,l,c,o,f,x]),r({ref:p,placerProps:be(be({},t),{},{placement:C||yN(s),maxHeight:h})})},t6e=function(t){var r=t.children,o=t.innerRef,i=t.innerProps;return ye("div",ve({},_t(t,"menu",{menu:!0}),{ref:o},i),r)},r6e=t6e,a6e=function(t,r){var o=t.maxHeight,i=t.theme.spacing.baseUnit;return be({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:i,paddingTop:i})},n6e=function(t){var r=t.children,o=t.innerProps,i=t.innerRef,s=t.isMulti;return ye("div",ve({},_t(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:i},o),r)},$N=function(t,r){var o=t.theme,i=o.spacing.baseUnit,s=o.colors;return be({textAlign:"center"},r?{}:{color:s.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},o6e=$N,i6e=$N,s6e=function(t){var r=t.children,o=r===void 0?"No options":r,i=t.innerProps,s=un(t,XBe);return ye("div",ve({},_t(be(be({},s),{},{children:o,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),o)},l6e=function(t){var r=t.children,o=r===void 0?"Loading...":r,i=t.innerProps,s=un(t,YBe);return ye("div",ve({},_t(be(be({},s),{},{children:o,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),o)},c6e=function(t){var r=t.rect,o=t.offset,i=t.position;return{left:r.left,position:i,top:o,width:r.width,zIndex:1}},u6e=function(t){var r=t.appendTo,o=t.children,i=t.controlElement,s=t.innerProps,l=t.menuPlacement,c=t.menuPosition,u=g.useRef(null),d=g.useRef(null),f=g.useState(yN(l)),p=Zt(f,2),m=p[0],b=p[1],h=g.useMemo(function(){return{setPortalPlacement:b}},[]),y=g.useState(null),v=Zt(y,2),$=v[0],C=v[1],T=g.useCallback(function(){if(i){var P=GBe(i),A=c==="fixed"?0:window.pageYOffset,I=P[m]+A;(I!==($==null?void 0:$.offset)||P.left!==($==null?void 0:$.rect.left)||P.width!==($==null?void 0:$.rect.width))&&C({offset:I,rect:P})}},[i,c,m,$==null?void 0:$.offset,$==null?void 0:$.rect.left,$==null?void 0:$.rect.width]);n4(function(){T()},[T]);var x=g.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),i&&u.current&&(d.current=NBe(i,u.current,T,{elementResize:"ResizeObserver"in window}))},[i,T]);n4(function(){x()},[x]);var w=g.useCallback(function(P){u.current=P,x()},[x]);if(!r&&c!=="fixed"||!$)return null;var S=ye("div",ve({ref:w},_t(be(be({},t),{},{offset:$.offset,position:c,rect:$.rect}),"menuPortal",{"menu-portal":!0}),s),o);return ye(vN.Provider,{value:h},r?bf.createPortal(S,r):S)},d6e=function(t){var r=t.isDisabled,o=t.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},f6e=function(t){var r=t.children,o=t.innerProps,i=t.isDisabled,s=t.isRtl;return ye("div",ve({},_t(t,"container",{"--is-disabled":i,"--is-rtl":s}),o),r)},p6e=function(t,r){var o=t.theme.spacing,i=t.isMulti,s=t.hasValue,l=t.selectProps.controlShouldRenderValue;return be({alignItems:"center",display:i&&s&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},m6e=function(t){var r=t.children,o=t.innerProps,i=t.isMulti,s=t.hasValue;return ye("div",ve({},_t(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s}),o),r)},g6e=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},h6e=function(t){var r=t.children,o=t.innerProps;return ye("div",ve({},_t(t,"indicatorsContainer",{indicators:!0}),o),r)},CN,b6e=["size"],y6e=["innerProps","isRtl","size"];function v6e(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var $6e=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:v6e},xN=function(t){var r=t.size,o=un(t,b6e);return ye("svg",ve({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$6e},o))},o4=function(t){return ye(xN,ve({size:20},t),ye("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},wN=function(t){return ye(xN,ve({size:20},t),ye("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},AN=function(t,r){var o=t.isFocused,i=t.theme,s=i.spacing.baseUnit,l=i.colors;return be({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:o?l.neutral60:l.neutral20,padding:s*2,":hover":{color:o?l.neutral80:l.neutral40}})},C6e=AN,x6e=function(t){var r=t.children,o=t.innerProps;return ye("div",ve({},_t(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),r||ye(wN,null))},w6e=AN,A6e=function(t){var r=t.children,o=t.innerProps;return ye("div",ve({},_t(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),r||ye(o4,null))},E6e=function(t,r){var o=t.isDisabled,i=t.theme,s=i.spacing.baseUnit,l=i.colors;return be({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:o?l.neutral10:l.neutral20,marginBottom:s*2,marginTop:s*2})},T6e=function(t){var r=t.innerProps;return ye("span",ve({},r,_t(t,"indicatorSeparator",{"indicator-separator":!0})))},_6e=$Be(CN||(CN=CBe([`
94
94
  0%, 80%, 100% { opacity: 0; }
95
95
  40% { opacity: 1; }
96
- `]))),D6e=function(t,r){var o=t.isFocused,i=t.size,s=t.theme,l=s.colors,c=s.spacing.baseUnit;return be({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},r?{}:{color:o?l.neutral60:l.neutral20,padding:c*2})},i4=function(t){var r=t.delay,o=t.offset;return ye("span",{css:Q$({animation:"".concat(_6e," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},S6e=function(t){var r=t.innerProps,o=t.isRtl,i=t.size,s=i===void 0?4:i,l=un(t,y6e);return ye("div",ve({},_t(be(be({},l),{},{innerProps:r,isRtl:o,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ye(i4,{delay:0,offset:o}),ye(i4,{delay:160,offset:!0}),ye(i4,{delay:320,offset:!o}))},P6e=function(t,r){var o=t.isDisabled,i=t.isFocused,s=t.theme,l=s.colors,c=s.borderRadius,u=s.spacing;return be({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:o?l.neutral5:l.neutral0,borderColor:o?l.neutral10:i?l.primary:l.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:i?l.primary:l.neutral30}})},I6e=function(t){var r=t.children,o=t.isDisabled,i=t.isFocused,s=t.innerRef,l=t.innerProps,c=t.menuIsOpen;return ye("div",ve({ref:s},_t(t,"control",{control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":c}),l,{"aria-disabled":o||void 0}),r)},j6e=I6e,k6e=["data"],N6e=function(t,r){var o=t.theme.spacing;return r?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},L6e=function(t){var r=t.children,o=t.cx,i=t.getStyles,s=t.getClassNames,l=t.Heading,c=t.headingProps,u=t.innerProps,d=t.label,f=t.theme,p=t.selectProps;return ye("div",ve({},_t(t,"group",{group:!0}),u),ye(l,ve({},c,{selectProps:p,theme:f,getStyles:i,getClassNames:s,cx:o}),d),ye("div",null,r))},O6e=function(t,r){var o=t.theme,i=o.colors,s=o.spacing;return be({label:"group",cursor:"default",display:"block"},r?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},B6e=function(t){var r=pN(t);r.data;var o=un(r,k6e);return ye("div",ve({},_t(t,"groupHeading",{"group-heading":!0}),o))},M6e=L6e,F6e=["innerRef","isDisabled","isHidden","inputClassName"],R6e=function(t,r){var o=t.isDisabled,i=t.value,s=t.theme,l=s.spacing,c=s.colors;return be(be({visibility:o?"hidden":"visible",transform:i?"translateZ(0)":""},V6e),r?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:c.neutral80})},EN={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},V6e={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":be({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},EN)},G6e=function(t){return be({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},EN)},z6e=function(t){var r=t.cx,o=t.value,i=pN(t),s=i.innerRef,l=i.isDisabled,c=i.isHidden,u=i.inputClassName,d=un(i,F6e);return ye("div",ve({},_t(t,"input",{"input-container":!0}),{"data-value":o||""}),ye("input",ve({className:r({input:!0},u),ref:s,style:G6e(c),disabled:l},d)))},Z6e=z6e,W6e=function(t,r){var o=t.theme,i=o.spacing,s=o.borderRadius,l=o.colors;return be({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:l.neutral10,borderRadius:s/2,margin:i.baseUnit/2})},q6e=function(t,r){var o=t.theme,i=o.borderRadius,s=o.colors,l=t.cropWithEllipsis;return be({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:i/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},U6e=function(t,r){var o=t.theme,i=o.spacing,s=o.borderRadius,l=o.colors,c=t.isFocused;return be({alignItems:"center",display:"flex"},r?{}:{borderRadius:s/2,backgroundColor:c?l.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},TN=function(t){var r=t.children,o=t.innerProps;return ye("div",o,r)},H6e=TN,X6e=TN;function Y6e(e){var t=e.children,r=e.innerProps;return ye("div",ve({role:"button"},r),t||ye(o4,{size:14}))}var J6e=function(t){var r=t.children,o=t.components,i=t.data,s=t.innerProps,l=t.isDisabled,c=t.removeProps,u=t.selectProps,d=o.Container,f=o.Label,p=o.Remove;return ye(d,{data:i,innerProps:be(be({},_t(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),s),selectProps:u},ye(f,{data:i,innerProps:be({},_t(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),ye(p,{data:i,innerProps:be(be({},_t(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},c),selectProps:u}))},K6e=J6e,Q6e=function(t,r){var o=t.isDisabled,i=t.isFocused,s=t.isSelected,l=t.theme,c=l.spacing,u=l.colors;return be({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:s?u.primary:i?u.primary25:"transparent",color:o?u.neutral20:s?u.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:s?u.primary:u.primary50}})},eMe=function(t){var r=t.children,o=t.isDisabled,i=t.isFocused,s=t.isSelected,l=t.innerRef,c=t.innerProps;return ye("div",ve({},_t(t,"option",{option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":s}),{ref:l,"aria-disabled":o},c),r)},tMe=eMe,rMe=function(t,r){var o=t.theme,i=o.spacing,s=o.colors;return be({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:s.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},aMe=function(t){var r=t.children,o=t.innerProps;return ye("div",ve({},_t(t,"placeholder",{placeholder:!0}),o),r)},nMe=aMe,oMe=function(t,r){var o=t.isDisabled,i=t.theme,s=i.spacing,l=i.colors;return be({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:o?l.neutral40:l.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},iMe=function(t){var r=t.children,o=t.isDisabled,i=t.innerProps;return ye("div",ve({},_t(t,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),i),r)},sMe=iMe,eo={ClearIndicator:A6e,Control:j6e,DropdownIndicator:x6e,DownChevron:wN,CrossIcon:o4,Group:M6e,GroupHeading:B6e,IndicatorsContainer:h6e,IndicatorSeparator:T6e,Input:Z6e,LoadingIndicator:S6e,Menu:r6e,MenuList:n6e,MenuPortal:u6e,LoadingMessage:l6e,NoOptionsMessage:s6e,MultiValue:K6e,MultiValueContainer:H6e,MultiValueLabel:X6e,MultiValueRemove:Y6e,Option:tMe,Placeholder:nMe,SelectContainer:f6e,SingleValue:sMe,ValueContainer:m6e},lMe=function(t){return be(be({},eo),t.components)},_N=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function cMe(e,t){return!!(e===t||_N(e)&&_N(t))}function uMe(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!cMe(e[r],t[r]))return!1;return!0}function dMe(e,t){t===void 0&&(t=uMe);var r=null;function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(r&&r.lastThis===this&&t(i,r.lastArgs))return r.lastResult;var l=e.apply(this,i);return r={lastResult:l,lastArgs:i,lastThis:this},l}return o.clear=function(){r=null},o}function fMe(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var pMe=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:fMe},mMe=function(t){return ye("span",ve({css:pMe},t))},DN=mMe,gMe={guidance:function(t){var r=t.isSearchable,o=t.isMulti,i=t.tabSelectsValue,s=t.context,l=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,o=t.label,i=o===void 0?"":o,s=t.labels,l=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return l?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var r=t.context,o=t.focused,i=t.options,s=t.label,l=s===void 0?"":s,c=t.selectValue,u=t.isDisabled,d=t.isSelected,f=t.isAppleDevice,p=function(y,v){return y&&y.length?"".concat(y.indexOf(v)+1," of ").concat(y.length):""};if(r==="value"&&c)return"value ".concat(l," focused, ").concat(p(c,o),".");if(r==="menu"&&f){var m=u?" disabled":"",b="".concat(d?" selected":"").concat(m);return"".concat(l).concat(b,", ").concat(p(i,o),".")}return""},onFilter:function(t){var r=t.inputValue,o=t.resultsMessage;return"".concat(o).concat(r?" for search term "+r:"",".")}},hMe=function(t){var r=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,s=t.focusableOptions,l=t.isFocused,c=t.selectValue,u=t.selectProps,d=t.id,f=t.isAppleDevice,p=u.ariaLiveMessages,m=u.getOptionLabel,b=u.inputValue,h=u.isMulti,y=u.isOptionDisabled,v=u.isSearchable,$=u.menuIsOpen,C=u.options,T=u.screenReaderStatus,x=u.tabSelectsValue,w=u.isLoading,S=u["aria-label"],P=u["aria-live"],A=g.useMemo(function(){return be(be({},gMe),p||{})},[p]),I=g.useMemo(function(){var U="";if(r&&A.onChange){var X=r.option,ee=r.options,te=r.removedValue,de=r.removedValues,G=r.value,N=function(R){return Array.isArray(R)?null:R},B=te||X||N(G),L=B?m(B):"",E=ee||de||void 0,_=E?E.map(m):[],M=be({isDisabled:B&&y(B,c),label:L,labels:_},r);U=A.onChange(M)}return U},[r,A,y,c,m]),O=g.useMemo(function(){var U="",X=o||i,ee=!!(o&&c&&c.includes(o));if(X&&A.onFocus){var te={focused:X,label:m(X),isDisabled:y(X,c),isSelected:ee,options:s,context:X===o?"menu":"value",selectValue:c,isAppleDevice:f};U=A.onFocus(te)}return U},[o,i,m,y,A,s,c,f]),j=g.useMemo(function(){var U="";if($&&C.length&&!w&&A.onFilter){var X=T({count:s.length});U=A.onFilter({inputValue:b,resultsMessage:X})}return U},[s,b,$,A,C,T,w]),V=(r==null?void 0:r.action)==="initial-input-focus",k=g.useMemo(function(){var U="";if(A.guidance){var X=i?"value":$?"menu":"input";U=A.guidance({"aria-label":S,context:X,isDisabled:o&&y(o,c),isMulti:h,isSearchable:v,tabSelectsValue:x,isInitialFocus:V})}return U},[S,o,i,h,y,v,$,A,c,x,V]),Z=ye(g.Fragment,null,ye("span",{id:"aria-selection"},I),ye("span",{id:"aria-focused"},O),ye("span",{id:"aria-results"},j),ye("span",{id:"aria-guidance"},k));return ye(g.Fragment,null,ye(DN,{id:d},V&&Z),ye(DN,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!V&&Z))},bMe=hMe,s4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],yMe=new RegExp("["+s4.map(function(e){return e.letters}).join("")+"]","g"),SN={},l4=0;l4<s4.length;l4++)for(var c4=s4[l4],u4=0;u4<c4.letters.length;u4++)SN[c4.letters[u4]]=c4.base;var PN=function(t){return t.replace(yMe,function(r){return SN[r]})},vMe=dMe(PN),IN=function(t){return t.replace(/^\s+|\s+$/g,"")},$Me=function(t){return"".concat(t.label," ").concat(t.value)},CMe=function(t){return function(r,o){if(r.data.__isNew__)return!0;var i=be({ignoreCase:!0,ignoreAccents:!0,stringify:$Me,trim:!0,matchFrom:"any"},t),s=i.ignoreCase,l=i.ignoreAccents,c=i.stringify,u=i.trim,d=i.matchFrom,f=u?IN(o):o,p=u?IN(c(r)):c(r);return s&&(f=f.toLowerCase(),p=p.toLowerCase()),l&&(f=vMe(f),p=PN(p)),d==="start"?p.substr(0,f.length)===f:p.indexOf(f)>-1}},xMe=["innerRef"];function wMe(e){var t=e.innerRef,r=un(e,xMe),o=HBe(r,"onExited","in","enter","exit","appear");return ye("input",ve({ref:t},o,{css:Q$({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var AMe=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function EMe(e){var t=e.isEnabled,r=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,s=e.onTopLeave,l=g.useRef(!1),c=g.useRef(!1),u=g.useRef(0),d=g.useRef(null),f=g.useCallback(function(v,$){if(d.current!==null){var C=d.current,T=C.scrollTop,x=C.scrollHeight,w=C.clientHeight,S=d.current,P=$>0,A=x-w-T,I=!1;A>$&&l.current&&(o&&o(v),l.current=!1),P&&c.current&&(s&&s(v),c.current=!1),P&&$>A?(r&&!l.current&&r(v),S.scrollTop=x,I=!0,l.current=!0):!P&&-$>T&&(i&&!c.current&&i(v),S.scrollTop=0,I=!0,c.current=!0),I&&AMe(v)}},[r,o,i,s]),p=g.useCallback(function(v){f(v,v.deltaY)},[f]),m=g.useCallback(function(v){u.current=v.changedTouches[0].clientY},[]),b=g.useCallback(function(v){var $=u.current-v.changedTouches[0].clientY;f(v,$)},[f]),h=g.useCallback(function(v){if(v){var $=WBe?{passive:!1}:!1;v.addEventListener("wheel",p,$),v.addEventListener("touchstart",m,$),v.addEventListener("touchmove",b,$)}},[b,m,p]),y=g.useCallback(function(v){v&&(v.removeEventListener("wheel",p,!1),v.removeEventListener("touchstart",m,!1),v.removeEventListener("touchmove",b,!1))},[b,m,p]);return g.useEffect(function(){if(t){var v=d.current;return h(v),function(){y(v)}}},[t,h,y]),function(v){d.current=v}}var jN=["boxSizing","height","overflow","paddingRight","position"],kN={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function NN(e){e.cancelable&&e.preventDefault()}function LN(e){e.stopPropagation()}function ON(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function BN(){return"ontouchstart"in window||navigator.maxTouchPoints}var MN=!!(typeof window<"u"&&window.document&&window.document.createElement),Id=0,Bl={capture:!1,passive:!1};function TMe(e){var t=e.isEnabled,r=e.accountForScrollbars,o=r===void 0?!0:r,i=g.useRef({}),s=g.useRef(null),l=g.useCallback(function(u){if(MN){var d=document.body,f=d&&d.style;if(o&&jN.forEach(function(h){var y=f&&f[h];i.current[h]=y}),o&&Id<1){var p=parseInt(i.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,b=window.innerWidth-m+p||0;Object.keys(kN).forEach(function(h){var y=kN[h];f&&(f[h]=y)}),f&&(f.paddingRight="".concat(b,"px"))}d&&BN()&&(d.addEventListener("touchmove",NN,Bl),u&&(u.addEventListener("touchstart",ON,Bl),u.addEventListener("touchmove",LN,Bl))),Id+=1}},[o]),c=g.useCallback(function(u){if(MN){var d=document.body,f=d&&d.style;Id=Math.max(Id-1,0),o&&Id<1&&jN.forEach(function(p){var m=i.current[p];f&&(f[p]=m)}),d&&BN()&&(d.removeEventListener("touchmove",NN,Bl),u&&(u.removeEventListener("touchstart",ON,Bl),u.removeEventListener("touchmove",LN,Bl)))}},[o]);return g.useEffect(function(){if(t){var u=s.current;return l(u),function(){c(u)}}},[t,l,c]),function(u){s.current=u}}function _Me(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var DMe=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},SMe=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:_Me};function PMe(e){var t=e.children,r=e.lockEnabled,o=e.captureEnabled,i=o===void 0?!0:o,s=e.onBottomArrive,l=e.onBottomLeave,c=e.onTopArrive,u=e.onTopLeave,d=EMe({isEnabled:i,onBottomArrive:s,onBottomLeave:l,onTopArrive:c,onTopLeave:u}),f=TMe({isEnabled:r}),p=function(b){d(b),f(b)};return ye(g.Fragment,null,r&&ye("div",{onClick:DMe,css:SMe}),t(p))}function IMe(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var jMe=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:IMe},kMe=function(t){var r=t.name,o=t.onFocus;return ye("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:jMe,value:"",onChange:function(){}})},NMe=kMe;function d4(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function LMe(){return d4(/^iPhone/i)}function FN(){return d4(/^Mac/i)}function OMe(){return d4(/^iPad/i)||FN()&&navigator.maxTouchPoints>1}function BMe(){return LMe()||OMe()}function MMe(){return FN()||BMe()}var FMe=function(t){return t.label},RMe=function(t){return t.label},VMe=function(t){return t.value},GMe=function(t){return!!t.isDisabled},zMe={clearIndicator:w6e,container:d6e,control:P6e,dropdownIndicator:C6e,group:N6e,groupHeading:O6e,indicatorsContainer:g6e,indicatorSeparator:E6e,input:R6e,loadingIndicator:D6e,loadingMessage:i6e,menu:QBe,menuList:a6e,menuPortal:c6e,multiValue:W6e,multiValueLabel:q6e,multiValueRemove:U6e,noOptionsMessage:o6e,option:Q6e,placeholder:rMe,singleValue:oMe,valueContainer:p6e},ZMe={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},WMe=4,RN=4,qMe=38,UMe=RN*2,HMe={baseUnit:RN,controlHeight:qMe,menuGutter:UMe},f4={borderRadius:WMe,colors:ZMe,spacing:HMe},XMe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:hN(),captureMenuScroll:!hN(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:CMe(),formatGroupLabel:FMe,getOptionLabel:RMe,getOptionValue:VMe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:GMe,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!zBe(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function VN(e,t,r,o){var i=qN(e,t,r),s=UN(e,t,r),l=WN(e,t),c=Ug(e,t);return{type:"option",data:t,isDisabled:i,isSelected:s,label:l,value:c,index:o}}function qg(e,t){return e.options.map(function(r,o){if("options"in r){var i=r.options.map(function(l,c){return VN(e,l,t,c)}).filter(function(l){return ZN(e,l)});return i.length>0?{type:"group",data:r,options:i,index:o}:void 0}var s=VN(e,r,t,o);return ZN(e,s)?s:void 0}).filter(qBe)}function GN(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,z$(r.options.map(function(o){return o.data}))):t.push(r.data),t},[])}function zN(e,t){return e.reduce(function(r,o){return o.type==="group"?r.push.apply(r,z$(o.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(o.index,"-").concat(i.index)}}))):r.push({data:o.data,id:"".concat(t,"-").concat(o.index)}),r},[])}function YMe(e,t){return GN(qg(e,t))}function ZN(e,t){var r=e.inputValue,o=r===void 0?"":r,i=t.data,s=t.isSelected,l=t.label,c=t.value;return(!XN(e)||!s)&&HN(e,{label:l,value:c,data:i},o)}function JMe(e,t){var r=e.focusedValue,o=e.selectValue,i=o.indexOf(r);if(i>-1){var s=t.indexOf(r);if(s>-1)return r;if(i<t.length)return t[i]}return null}function KMe(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var p4=function(t,r){var o,i=(o=t.find(function(s){return s.data===r}))===null||o===void 0?void 0:o.id;return i||null},WN=function(t,r){return t.getOptionLabel(r)},Ug=function(t,r){return t.getOptionValue(r)};function qN(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function UN(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var o=Ug(e,t);return r.some(function(i){return Ug(e,i)===o})}function HN(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var XN=function(t){var r=t.hideSelectedOptions,o=t.isMulti;return r===void 0?o:r},QMe=1,m4=function(e){g9e(r,e);var t=y9e(r);function r(o){var i;if(p9e(this,r),i=t.call(this,o),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=MMe(),i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,d){var f=i.props,p=f.onChange,m=f.name;d.name=m,i.ariaOnChange(u,d),p(u,d)},i.setValue=function(u,d,f){var p=i.props,m=p.closeMenuOnSelect,b=p.isMulti,h=p.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:h}),m&&(i.setState({inputIsHiddenAfterUpdate:!b}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:d,option:f})},i.selectOption=function(u){var d=i.props,f=d.blurInputOnSelect,p=d.isMulti,m=d.name,b=i.state.selectValue,h=p&&i.isOptionSelected(u,b),y=i.isOptionDisabled(u,b);if(h){var v=i.getOptionValue(u);i.setValue(b.filter(function($){return i.getOptionValue($)!==v}),"deselect-option",u)}else if(!y)p?i.setValue([].concat(z$(b),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:m});return}f&&i.blurInput()},i.removeValue=function(u){var d=i.props.isMulti,f=i.state.selectValue,p=i.getOptionValue(u),m=f.filter(function(h){return i.getOptionValue(h)!==p}),b=Wg(d,m,m[0]||null);i.onChange(b,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(Wg(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,d=i.state.selectValue,f=d[d.length-1],p=d.slice(0,d.length-1),m=Wg(u,p,p[0]||null);f&&i.onChange(m,{action:"pop-value",removedValue:f})},i.getFocusedOptionId=function(u){return p4(i.state.focusableOptionsWithIds,u)},i.getFocusableOptionsWithIds=function(){return zN(qg(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return BBe.apply(void 0,[i.props.classNamePrefix].concat(d))},i.getOptionLabel=function(u){return WN(i.props,u)},i.getOptionValue=function(u){return Ug(i.props,u)},i.getStyles=function(u,d){var f=i.props.unstyled,p=zMe[u](d,f);p.boxSizing="border-box";var m=i.props.styles[u];return m?m(p,d):p},i.getClassNames=function(u,d){var f,p;return(f=(p=i.props.classNames)[u])===null||f===void 0?void 0:f.call(p,d)},i.getElementId=function(u){return"".concat(i.state.instancePrefix,"-").concat(u)},i.getComponents=function(){return lMe(i.props)},i.buildCategorizedOptions=function(){return qg(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return GN(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(u,d){i.setState({ariaSelection:be({value:u},d)})},i.onMenuMouseDown=function(u){u.button===0&&(u.stopPropagation(),u.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(u){i.blockOptionHover=!1},i.onControlMouseDown=function(u){if(!u.defaultPrevented){var d=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&i.onMenuClose():d&&i.openMenu("first"):(d&&(i.openAfterFocus=!0),i.focusInput()),u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&u.preventDefault()}},i.onDropdownIndicatorMouseDown=function(u){if(!(u&&u.type==="mousedown"&&u.button!==0)&&!i.props.isDisabled){var d=i.props,f=d.isMulti,p=d.menuIsOpen;i.focusInput(),p?(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()):i.openMenu("first"),u.preventDefault()}},i.onClearIndicatorMouseDown=function(u){u&&u.type==="mousedown"&&u.button!==0||(i.clearValue(),u.preventDefault(),i.openAfterFocus=!1,u.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(u){typeof i.props.closeMenuOnScroll=="boolean"?u.target instanceof HTMLElement&&Vg(u.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(u)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(u){var d=u.touches,f=d&&d.item(0);f&&(i.initialTouchX=f.clientX,i.initialTouchY=f.clientY,i.userIsDragging=!1)},i.onTouchMove=function(u){var d=u.touches,f=d&&d.item(0);if(f){var p=Math.abs(f.clientX-i.initialTouchX),m=Math.abs(f.clientY-i.initialTouchY),b=5;i.userIsDragging=p>b||m>b}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var d=i.props.inputValue,f=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(f,{action:"input-change",prevInputValue:d}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var d=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:d}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){if(!(i.blockOptionHover||i.state.focusedOption===u)){var d=i.getFocusableOptions(),f=d.indexOf(u);i.setState({focusedOption:u,focusedOptionId:f>-1?i.getFocusedOptionId(u):null})}},i.shouldHideSelectedOptions=function(){return XN(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var d=i.props,f=d.isMulti,p=d.backspaceRemovesValue,m=d.escapeClearsValue,b=d.inputValue,h=d.isClearable,y=d.isDisabled,v=d.menuIsOpen,$=d.onKeyDown,C=d.tabSelectsValue,T=d.openMenuOnFocus,x=i.state,w=x.focusedOption,S=x.focusedValue,P=x.selectValue;if(!y&&!(typeof $=="function"&&($(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!f||b)return;i.focusValue("previous");break;case"ArrowRight":if(!f||b)return;i.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(S)i.removeValue(S);else{if(!p)return;f?i.popValue():h&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!v||!C||!w||T&&i.isOptionSelected(w,P))return;i.selectOption(w);break;case"Enter":if(u.keyCode===229)break;if(v){if(!w||i.isComposing)return;i.selectOption(w);break}return;case"Escape":v?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:b}),i.onMenuClose()):h&&m&&i.clearValue();break;case" ":if(b)return;if(!v){i.openMenu("first");break}if(!w)return;i.selectOption(w);break;case"ArrowUp":v?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":v?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!v)return;i.focusOption("pageup");break;case"PageDown":if(!v)return;i.focusOption("pagedown");break;case"Home":if(!v)return;i.focusOption("first");break;case"End":if(!v)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++QMe),i.state.selectValue=fN(o.value),o.menuIsOpen&&i.state.selectValue.length){var s=i.getFocusableOptionsWithIds(),l=i.buildFocusableOptions(),c=l.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=s,i.state.focusedOption=l[c],i.state.focusedOptionId=p4(s,l[c])}return i}return m9e(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&gN(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var s=this.props,l=s.isDisabled,c=s.menuIsOpen,u=this.state.isFocused;(u&&!l&&i.isDisabled||u&&c&&!i.menuIsOpen)&&this.focusInput(),u&&l&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!l&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(gN(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,s){this.props.onInputChange(i,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var s=this,l=this.state,c=l.selectValue,u=l.isFocused,d=this.buildFocusableOptions(),f=i==="first"?0:d.length-1;if(!this.props.isMulti){var p=d.indexOf(c[0]);p>-1&&(f=p)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[f],focusedOptionId:this.getFocusedOptionId(d[f])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(i){var s=this.state,l=s.selectValue,c=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=l.indexOf(c);c||(u=-1);var d=l.length-1,f=-1;if(l.length){switch(i){case"previous":u===0?f=0:u===-1?f=d:f=u-1;break;case"next":u>-1&&u<d&&(f=u+1);break}this.setState({inputIsHidden:f!==-1,focusedValue:l[f]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,l=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var u=0,d=c.indexOf(l);l||(d=-1),i==="up"?u=d>0?d-1:c.length-1:i==="down"?u=(d+1)%c.length:i==="pageup"?(u=d-s,u<0&&(u=0)):i==="pagedown"?(u=d+s,u>c.length-1&&(u=c.length-1)):i==="last"&&(u=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(f4):be(be({},f4),this.props.theme):f4}},{key:"getCommonProps",value:function(){var i=this.clearValue,s=this.cx,l=this.getStyles,c=this.getClassNames,u=this.getValue,d=this.selectOption,f=this.setValue,p=this.props,m=p.isMulti,b=p.isRtl,h=p.options,y=this.hasValue();return{clearValue:i,cx:s,getStyles:l,getClassNames:c,getValue:u,hasValue:y,isMulti:m,isRtl:b,options:h,selectOption:d,selectProps:p,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,s=i.isClearable,l=i.isMulti;return s===void 0?l:s}},{key:"isOptionDisabled",value:function(i,s){return qN(this.props,i,s)}},{key:"isOptionSelected",value:function(i,s){return UN(this.props,i,s)}},{key:"filterOption",value:function(i,s){return HN(this.props,i,s)}},{key:"formatOptionLabel",value:function(i,s){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(i,{context:s,inputValue:l,selectValue:c})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,s=i.isDisabled,l=i.isSearchable,c=i.inputId,u=i.inputValue,d=i.tabIndex,f=i.form,p=i.menuIsOpen,m=i.required,b=this.getComponents(),h=b.Input,y=this.state,v=y.inputIsHidden,$=y.ariaSelection,C=this.commonProps,T=c||this.getElementId("input"),x=be(be(be({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?($==null?void 0:$.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?F.createElement(h,ve({},C,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:T,innerRef:this.getInputRef,isDisabled:s,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:f,type:"text",value:u},x)):F.createElement(wMe,ve({id:T,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Rg,onFocus:this.onInputFocus,disabled:s,tabIndex:d,inputMode:"none",form:f,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,s=this.getComponents(),l=s.MultiValue,c=s.MultiValueContainer,u=s.MultiValueLabel,d=s.MultiValueRemove,f=s.SingleValue,p=s.Placeholder,m=this.commonProps,b=this.props,h=b.controlShouldRenderValue,y=b.isDisabled,v=b.isMulti,$=b.inputValue,C=b.placeholder,T=this.state,x=T.selectValue,w=T.focusedValue,S=T.isFocused;if(!this.hasValue()||!h)return $?null:F.createElement(p,ve({},m,{key:"placeholder",isDisabled:y,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),C);if(v)return x.map(function(A,I){var O=A===w,j="".concat(i.getOptionLabel(A),"-").concat(i.getOptionValue(A));return F.createElement(l,ve({},m,{components:{Container:c,Label:u,Remove:d},isFocused:O,isDisabled:y,key:j,index:I,removeProps:{onClick:function(){return i.removeValue(A)},onTouchEnd:function(){return i.removeValue(A)},onMouseDown:function(k){k.preventDefault()}},data:A}),i.formatOptionLabel(A,"value"))});if($)return null;var P=x[0];return F.createElement(f,ve({},m,{data:P,isDisabled:y}),this.formatOptionLabel(P,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),s=i.ClearIndicator,l=this.commonProps,c=this.props,u=c.isDisabled,d=c.isLoading,f=this.state.isFocused;if(!this.isClearable()||!s||u||!this.hasValue()||d)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(s,ve({},l,{innerProps:p,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),s=i.LoadingIndicator,l=this.commonProps,c=this.props,u=c.isDisabled,d=c.isLoading,f=this.state.isFocused;if(!s||!d)return null;var p={"aria-hidden":"true"};return F.createElement(s,ve({},l,{innerProps:p,isDisabled:u,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator,l=i.IndicatorSeparator;if(!s||!l)return null;var c=this.commonProps,u=this.props.isDisabled,d=this.state.isFocused;return F.createElement(l,ve({},c,{isDisabled:u,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator;if(!s)return null;var l=this.commonProps,c=this.props.isDisabled,u=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(s,ve({},l,{innerProps:d,isDisabled:c,isFocused:u}))}},{key:"renderMenu",value:function(){var i=this,s=this.getComponents(),l=s.Group,c=s.GroupHeading,u=s.Menu,d=s.MenuList,f=s.MenuPortal,p=s.LoadingMessage,m=s.NoOptionsMessage,b=s.Option,h=this.commonProps,y=this.state.focusedOption,v=this.props,$=v.captureMenuScroll,C=v.inputValue,T=v.isLoading,x=v.loadingMessage,w=v.minMenuHeight,S=v.maxMenuHeight,P=v.menuIsOpen,A=v.menuPlacement,I=v.menuPosition,O=v.menuPortalTarget,j=v.menuShouldBlockScroll,V=v.menuShouldScrollIntoView,k=v.noOptionsMessage,Z=v.onMenuScrollToTop,U=v.onMenuScrollToBottom;if(!P)return null;var X=function(L,E){var _=L.type,M=L.data,z=L.isDisabled,R=L.isSelected,W=L.label,Q=L.value,fe=y===M,H=z?void 0:function(){return i.onOptionHover(M)},je=z?void 0:function(){return i.selectOption(M)},ft="".concat(i.getElementId("option"),"-").concat(E),Et={id:ft,onClick:je,onMouseMove:H,onMouseOver:H,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:R};return F.createElement(b,ve({},h,{innerProps:Et,data:M,isDisabled:z,isSelected:R,key:ft,label:W,type:_,value:Q,isFocused:fe,innerRef:fe?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(L.data,"menu"))},ee;if(this.hasOptions())ee=this.getCategorizedOptions().map(function(B){if(B.type==="group"){var L=B.data,E=B.options,_=B.index,M="".concat(i.getElementId("group"),"-").concat(_),z="".concat(M,"-heading");return F.createElement(l,ve({},h,{key:M,data:L,options:E,Heading:c,headingProps:{id:z,data:B.data},label:i.formatGroupLabel(B.data)}),B.options.map(function(R){return X(R,"".concat(_,"-").concat(R.index))}))}else if(B.type==="option")return X(B,"".concat(B.index))});else if(T){var te=x({inputValue:C});if(te===null)return null;ee=F.createElement(p,h,te)}else{var de=k({inputValue:C});if(de===null)return null;ee=F.createElement(m,h,de)}var G={minMenuHeight:w,maxMenuHeight:S,menuPlacement:A,menuPosition:I,menuShouldScrollIntoView:V},N=F.createElement(e6e,ve({},h,G),function(B){var L=B.ref,E=B.placerProps,_=E.placement,M=E.maxHeight;return F.createElement(u,ve({},h,G,{innerRef:L,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:T,placement:_}),F.createElement(PMe,{captureEnabled:$,onTopArrive:Z,onBottomArrive:U,lockEnabled:j},function(z){return F.createElement(d,ve({},h,{innerRef:function(W){i.getMenuListRef(W),z(W)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:i.getElementId("listbox")},isLoading:T,maxHeight:M,focusedOption:y}),ee)}))});return O||I==="fixed"?F.createElement(f,ve({},h,{appendTo:O,controlElement:this.controlRef,menuPlacement:A,menuPosition:I}),N):N}},{key:"renderFormField",value:function(){var i=this,s=this.props,l=s.delimiter,c=s.isDisabled,u=s.isMulti,d=s.name,f=s.required,p=this.state.selectValue;if(f&&!this.hasValue()&&!c)return F.createElement(NMe,{name:d,onFocus:this.onValueInputFocus});if(!(!d||c))if(u)if(l){var m=p.map(function(y){return i.getOptionValue(y)}).join(l);return F.createElement("input",{name:d,type:"hidden",value:m})}else{var b=p.length>0?p.map(function(y,v){return F.createElement("input",{key:"i-".concat(v),name:d,type:"hidden",value:i.getOptionValue(y)})}):F.createElement("input",{name:d,type:"hidden",value:""});return F.createElement("div",null,b)}else{var h=p[0]?this.getOptionValue(p[0]):"";return F.createElement("input",{name:d,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,s=this.state,l=s.ariaSelection,c=s.focusedOption,u=s.focusedValue,d=s.isFocused,f=s.selectValue,p=this.getFocusableOptions();return F.createElement(bMe,ve({},i,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:c,focusedValue:u,isFocused:d,selectValue:f,focusableOptions:p,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),s=i.Control,l=i.IndicatorsContainer,c=i.SelectContainer,u=i.ValueContainer,d=this.props,f=d.className,p=d.id,m=d.isDisabled,b=d.menuIsOpen,h=this.state.isFocused,y=this.commonProps=this.getCommonProps();return F.createElement(c,ve({},y,{className:f,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:h}),this.renderLiveRegion(),F.createElement(s,ve({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:h,menuIsOpen:b}),F.createElement(u,ve({},y,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),F.createElement(l,ve({},y,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,s){var l=s.prevProps,c=s.clearFocusValueOnUpdate,u=s.inputIsHiddenAfterUpdate,d=s.ariaSelection,f=s.isFocused,p=s.prevWasFocused,m=s.instancePrefix,b=i.options,h=i.value,y=i.menuIsOpen,v=i.inputValue,$=i.isMulti,C=fN(h),T={};if(l&&(h!==l.value||b!==l.options||y!==l.menuIsOpen||v!==l.inputValue)){var x=y?YMe(i,C):[],w=y?zN(qg(i,C),"".concat(m,"-option")):[],S=c?JMe(s,C):null,P=KMe(s,x),A=p4(w,P);T={selectValue:C,focusedOption:P,focusedOptionId:A,focusableOptionsWithIds:w,focusedValue:S,clearFocusValueOnUpdate:!1}}var I=u!=null&&i!==l?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},O=d,j=f&&p;return f&&!j&&(O={value:Wg($,C,C[0]||null),options:C,action:"initial-input-focus"},j=!p),(d==null?void 0:d.action)==="initial-input-focus"&&(O=null),be(be(be({},T),I),{},{prevProps:i,ariaSelection:O,prevWasFocused:j})}}]),r}(g.Component);m4.defaultProps=XMe;var eFe=g.forwardRef(function(e,t){var r=kk(e);return F.createElement(m4,ve({ref:t},r))}),tFe=eFe;const YN={menuList:"select__menu-list"},rFe=Sl("inline-flex max-w-full items-center rounded-sm border px-2.5 py-1 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-zinc-100 dark:bg-zinc-800 text-black dark:text-white font-bold",info:"border-transparent bg-blue-50 text-blue-900 font-bold",destructive:"border-transparent bg-red-50 text-red-700 font-bold",outline:"text-foreground font-bold",success:"border-transparent bg-green-50 text-green-700 font-bold",warning:"border-transparent bg-yellow-50 text-yellow-700 font-bold"}},defaultVariants:{variant:"default"}});function aFe({className:e,variant:t,...r}){return D.jsx("div",{className:ze("max-w-full break-words",rFe({variant:t}),e),...r})}function JN(e){return D.jsxs(eo.DropdownIndicator,{...e,children:[D.jsx(R$,{className:"size-4 opacity-50","aria-label":"expand dropdown"}),D.jsx("span",{className:"sr-only",children:"expand dropdown"})]})}function KN(e){return D.jsxs(eo.ClearIndicator,{...e,children:[D.jsx(Dk,{className:"size-4 opacity-50","aria-label":"clear dropdown"}),D.jsx("span",{className:"sr-only",children:"clear dropdown"})]})}function QN(e){const t=()=>`Delete ${e.selectProps.getOptionLabel(e.data)}`,r={...e,innerProps:{...e.innerProps,"aria-label":t()}};return D.jsxs(eo.MultiValueRemove,{...r,children:[D.jsx(Dk,{className:"ml-2 size-4 text-black dark:text-white"}),D.jsx("span",{className:"sr-only",children:t()})]})}function eL(e){return D.jsx(eo.MultiValueContainer,{...e,children:D.jsx(aFe,{variant:"default",className:"max-w-full",children:e.children})})}function tL(e){const t=typeof e.children=="string"?"span":"div";return D.jsx(eo.MultiValueLabel,{...e,children:D.jsx(t,{children:e.children})})}function rL(e){return D.jsx(eo.ValueContainer,{...e,children:e.children})}function aL(e){return e.innerProps?(!("data-testid"in e.innerProps)||!e.innerProps["data-testid"])&&(e.innerProps["data-testid"]=YN.menuList):e.innerProps={"data-testid":YN.menuList},D.jsx(eo.MenuList,{...e,children:e.children})}function nL(e){return D.jsx(eo.Option,{...e})}const jd=g.forwardRef((e,t)=>D.jsx(tFe,{ref:t,unstyled:!0,components:{DropdownIndicator:JN,MultiValueRemove:QN,ClearIndicator:KN,MultiValueContainer:eL,ValueContainer:rL,MenuList:aL,Option:nL,MultiValueLabel:tL},id:e.id,placeholder:e.placeholder??"",inputId:e.id,closeMenuOnSelect:!e.isMulti,classNames:{control:({isFocused:r,isDisabled:o})=>ze(["border-input ring-offset-background shadow-xs max-h-36 w-full overflow-y-auto rounded-md border bg-transparent px-3 text-sm",r?"ring-ring ring-1":"",o?"cursor-not-allowed opacity-50":"",e.invalid?"ring-destructive ring-1":""]),valueContainer:()=>"flex flex-row flex-wrap gap-2 py-1",menu:()=>"text-sm mt-2 p-1 relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",option:({isFocused:r,isSelected:o,isDisabled:i})=>ze("relative flex w-full cursor-default select-none items-center break-words rounded-sm px-4 py-1.5 outline-none",r?"bg-accent text-accent-foreground":"",o?"bg-primary text-white":"",i?"text-zinc-400":""),multiValueLabel:()=>"dark:text-white",placeholder:()=>e.invalid?"text-destructive":"text-muted-foreground",indicatorsContainer:()=>"align-start"},...e}));jd.displayName="Autocomplete";const nFe=e=>{const{data:t,className:r,id:o,enabled:i,path:s,handleChange:l,options:c}=e,u=g.useRef(null),[d,f]=g.useState((c==null?void 0:c.find(p=>p.value===t))||null);return g.useEffect(()=>{const p=c==null?void 0:c.find(m=>m.value===t);f(p||null)},[c,s,l,t]),D.jsx(jd,{isClearable:!0,placeholder:"None",ref:u,id:o,instanceId:o,options:c,name:o,value:d,isDisabled:!i,isMulti:!1,className:r,onChange:p=>{f(p),l(s,p==null?void 0:p.value)},closeMenuOnSelect:!0})},oFe=Ye(4,it(vp,Er(e=>Object.prototype.hasOwnProperty.call(e,"constraint")))),iFe=i0(Pn(h0(nFe)));g.createContext(null),g.createContext(null),g.createContext(null),g.createContext(null),g.createContext(null);const g4=g.createContext({}),La=typeof document<"u"?g.useLayoutEffect:()=>{};function ir(e){const t=g.useRef(null);return La(()=>{t.current=e},[e]),g.useCallback((...r)=>{const o=t.current;return o==null?void 0:o(...r)},[])}function sFe(e){let[t,r]=g.useState(e),o=g.useRef(null),i=ir(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}t===l.value?i():r(l.value)});La(()=>{o.current&&i()});let s=ir(l=>{o.current=l(t),i()});return[t,s]}const Hg={prefix:String(Math.round(Math.random()*1e10)),current:0},oL=g.createContext(Hg),lFe=g.createContext(!1);let cFe=!!(typeof window<"u"&&window.document&&window.document.createElement),h4=new WeakMap;function uFe(e=!1){let t=g.useContext(oL),r=g.useRef(null);if(r.current===null&&!e){var o,i;let s=(i=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(o=i.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(s){let l=h4.get(s);l==null?h4.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==l.state&&(t.current=l.id,h4.delete(s))}r.current=++t.current}return r.current}function dFe(e){let t=g.useContext(oL);t===Hg&&!cFe&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=uFe(!!e),o=t===Hg&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function fFe(e){let t=g.useId(),[r]=g.useState(iL()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Hg.prefix}`;return e||`${o}-${t}`}const pFe=typeof g.useId=="function"?fFe:dFe;function mFe(){return!1}function gFe(){return!0}function hFe(e){return()=>{}}function iL(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(hFe,mFe,gFe):g.useContext(lFe)}let bFe=!!(typeof window<"u"&&window.document&&window.document.createElement),Ml=new Map,kd;typeof FinalizationRegistry<"u"&&(kd=new FinalizationRegistry(e=>{Ml.delete(e)}));function Zr(e){let[t,r]=g.useState(e),o=g.useRef(null),i=pFe(t),s=g.useRef(null);if(kd&&kd.register(s,i),bFe){const l=Ml.get(i);l&&!l.includes(o)?l.push(o):Ml.set(i,[o])}return La(()=>{let l=i;return()=>{kd&&kd.unregister(s),Ml.delete(l)}},[i]),g.useEffect(()=>{let l=o.current;return l&&r(l),()=>{l&&(o.current=null)}}),i}function yFe(e,t){if(e===t)return e;let r=Ml.get(e);if(r)return r.forEach(i=>i.current=t),t;let o=Ml.get(t);return o?(o.forEach(i=>i.current=e),e):t}function Xg(e=[]){let t=Zr(),[r,o]=sFe(t),i=g.useCallback(()=>{o(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,o]);return La(i,[t,i,...e]),r}function b4(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Wt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Wr=e=>e&&"window"in e&&e.window===e?e:Wt(e).defaultView||window;function vFe(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function $Fe(e){return vFe(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let CFe=!1;function Yg(){return CFe}function $t(e,t){if(!Yg())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:$Fe(r)?r=r.host:r=r.parentNode}return!1}const Ui=(e=document)=>{var t;if(!Yg())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function vt(e){return Yg()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class xFe{get currentNode(){return this._currentNode}set currentNode(t){if(!$t(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let o=t,i=t;for(this._currentNode=t;o&&o!==this.root;)if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=o,c=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});r.push(c),c.currentNode=i,this._currentSetFor.add(c),o=i=l.host}else o=o.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return $t(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.nextNode();return o&&(this.currentNode=o),o}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var o;let s;if(typeof this.filter=="function"?s=this.filter(r):!((o=this.filter)===null||o===void 0)&&o.acceptNode&&(s=this.filter.acceptNode(r)),s===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let l=this.lastChild();return l&&(this.currentNode=l),l}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,o,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const u=l.shadowRoot;if(u){const d=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var c;if(typeof this.filter=="function")return this.filter(l);if(!((c=this.filter)===null||c===void 0)&&c.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=i??null,this.whatToShow=o??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,o,this._acceptNode));const s=r.shadowRoot;if(s){const l=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function wFe(e,t,r,o){return Yg()?new xFe(e,t,r,o):e.createTreeWalker(t,r,o)}function ct(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let i in o){let s=t[i],l=o[i];typeof s=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=b4(s,l):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof l=="string"?t[i]=P$(s,l):i==="id"&&s&&l?t.id=yFe(s,l):t[i]=l!==void 0?l:s}}return t}function AFe(...e){return e.length===1&&e[0]?e[0]:t=>{for(let r of e)typeof r=="function"?r(t):r!=null&&(r.current=t)}}const EFe=new Set(["id"]),TFe=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),_Fe=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),DFe=/^(data-.*)$/;function Yt(e,t={}){let{labelable:r,isLink:o,propNames:i}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(EFe.has(l)||r&&TFe.has(l)||o&&_Fe.has(l)||i!=null&&i.has(l)||DFe.test(l))&&(s[l]=e[l]);return s}function Hi(e){if(SFe())e.focus({preventScroll:!0});else{let t=PFe(e);e.focus(),IFe(t)}}let Jg=null;function SFe(){if(Jg==null){Jg=!1;try{document.createElement("div").focus({get preventScroll(){return Jg=!0,!0}})}catch{}}return Jg}function PFe(e){let t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}function IFe(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}function Kg(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function y4(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Qo(e){let t=null;return()=>(t==null&&(t=e()),t)}const Fl=Qo(function(){return y4(/^Mac/i)}),sL=Qo(function(){return y4(/^iPhone/i)}),lL=Qo(function(){return y4(/^iPad/i)||Fl()&&navigator.maxTouchPoints>1}),Qg=Qo(function(){return sL()||lL()}),jFe=Qo(function(){return Kg(/AppleWebKit/i)&&!kFe()}),kFe=Qo(function(){return Kg(/Chrome/i)}),v4=Qo(function(){return Kg(/Android/i)}),NFe=Qo(function(){return Kg(/Firefox/i)});function Nd(e,t,r=!0){var o,i;let{metaKey:s,ctrlKey:l,altKey:c,shiftKey:u}=t;NFe()&&(!((i=window.event)===null||i===void 0||(o=i.type)===null||o===void 0)&&o.startsWith("key"))&&e.target==="_blank"&&(Fl()?s=!0:l=!0);let d=jFe()&&Fl()&&!lL()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:l,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:s,ctrlKey:l,altKey:c,shiftKey:u,bubbles:!0,cancelable:!0});Nd.isOpening=r,Hi(e),e.dispatchEvent(d),Nd.isOpening=!1}Nd.isOpening=!1;let Rl=new Map,$4=new Set;function cL(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let t=o=>{if(!e(o)||!o.target)return;let i=Rl.get(o.target);i||(i=new Set,Rl.set(o.target,i),o.target.addEventListener("transitioncancel",r,{once:!0})),i.add(o.propertyName)},r=o=>{if(!e(o)||!o.target)return;let i=Rl.get(o.target);if(i&&(i.delete(o.propertyName),i.size===0&&(o.target.removeEventListener("transitioncancel",r),Rl.delete(o.target)),Rl.size===0)){for(let s of $4)s();$4.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?cL():document.addEventListener("DOMContentLoaded",cL));function uL(e){requestAnimationFrame(()=>{Rl.size===0?e():$4.add(e)})}function eh(){let e=g.useRef(new Map),t=g.useCallback((i,s,l,c)=>{let u=c!=null&&c.once?(...d)=>{e.current.delete(l),l(...d)}:l;e.current.set(l,{type:s,eventTarget:i,fn:u,options:c}),i.addEventListener(s,u,c)},[]),r=g.useCallback((i,s,l,c)=>{var u;let d=((u=e.current.get(l))===null||u===void 0?void 0:u.fn)||l;i.removeEventListener(s,d,c),e.current.delete(l)},[]),o=g.useCallback(()=>{e.current.forEach((i,s)=>{r(i.eventTarget,i.type,s,i.options)})},[r]);return g.useEffect(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function th(e,t){let{id:r,"aria-label":o,"aria-labelledby":i}=e;return r=Zr(r),i&&o?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!o&&!i&&t&&(o=t),{id:r,"aria-label":o,"aria-labelledby":i}}function dL(e){const t=g.useRef(null);return g.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function fL(e,t){const r=g.useRef(!0),o=g.useRef(null);g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),g.useEffect(()=>{let i=o.current;r.current?r.current=!1:(!i||t.some((s,l)=>!Object.is(s,i[l])))&&e(),o.current=t},t)}function LFe(){return typeof window.ResizeObserver<"u"}function OFe(e){const{ref:t,box:r,onResize:o}=e;g.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(LFe()){const s=new window.ResizeObserver(l=>{l.length&&o()});return s.observe(i,{box:r}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[o,t,r])}function pL(e,t){La(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function C4(e,t){if(!e)return!1;let r=window.getComputedStyle(e),o=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function mL(e,t){let r=e;for(C4(r,t)&&(r=r.parentElement);r&&!C4(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function BFe(e,t){const r=[];for(;e&&e!==document.documentElement;)C4(e,t)&&r.push(e),e=e.parentElement;return r}let MFe=0;const x4=new Map;function w4(e){let[t,r]=g.useState();return La(()=>{if(!e)return;let o=x4.get(e);if(o)r(o.element.id);else{let i=`react-aria-description-${MFe++}`;r(i);let s=document.createElement("div");s.id=i,s.style.display="none",s.textContent=e,document.body.appendChild(s),o={refCount:0,element:s},x4.set(e,o)}return o.refCount++,()=>{o&&--o.refCount===0&&(o.element.remove(),x4.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function rh(e,t,r,o){let i=ir(r),s=r==null;g.useEffect(()=>{if(s||!e.current)return;let l=e.current;return l.addEventListener(t,i,o),()=>{l.removeEventListener(t,i,o)}},[e,t,o,s,i])}function FFe(e,t){let r=gL(e,t,"left"),o=gL(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,l=e.scrollLeft,c=e.scrollTop,{borderTopWidth:u,borderLeftWidth:d,scrollPaddingTop:f,scrollPaddingRight:p,scrollPaddingBottom:m,scrollPaddingLeft:b}=getComputedStyle(e),h=l+parseInt(d,10),y=c+parseInt(u,10),v=h+e.clientWidth,$=y+e.clientHeight,C=parseInt(f,10)||0,T=parseInt(m,10)||0,x=parseInt(p,10)||0,w=parseInt(b,10)||0;r<=l+w?l=r-parseInt(d,10)-w:r+i>v-x&&(l+=r+i-v+x),o<=y+C?c=o-parseInt(u,10)-C:o+s>$-T&&(c+=o+s-$+T),e.scrollLeft=l,e.scrollTop=c}function gL(e,t,r){const o=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[o];break}t=t.offsetParent}return i}function hL(e,t){if(e&&document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let u=BFe(e);for(let d of u)FFe(d,e)}else{var r;let{left:u,top:d}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:f,top:p}=e.getBoundingClientRect();if(Math.abs(u-f)>1||Math.abs(d-p)>1){var o,i,s;t==null||(i=t.containingElement)===null||i===void 0||(o=i.scrollIntoView)===null||o===void 0||o.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function A4(e){return e.mozInputSource===0&&e.isTrusted?!0:v4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function RFe(e){return!v4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function bL(e,t){let r=g.useRef(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}function E4(e,t,r){let o=g.useRef(t),i=ir(()=>{r&&r(o.current)});g.useEffect(()=>{var s;let l=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[e,i])}const T4=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],VFe=T4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";T4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const GFe=T4.join(':not([hidden]):not([tabindex="-1"]),');function yL(e){return e.matches(VFe)}function zFe(e){return e.matches(GFe)}function Xi(e,t,r){let[o,i]=g.useState(e||t),s=g.useRef(e!==void 0),l=e!==void 0;g.useEffect(()=>{let d=s.current;d!==l&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let c=l?e:o,u=g.useCallback((d,...f)=>{let p=(m,...b)=>{r&&(Object.is(c,m)||r(m,...b)),l||(c=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...h)=>{let y=d(l?c:b,...h);return p(y,...f),l?b:y})):(l||i(d),p(d,...f))},[l,c,r]);return[c,u]}function _4(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ah(e,t){let r=e,o=t.toString(),i=o.indexOf("."),s=i>=0?o.length-i:0;if(s>0){let l=Math.pow(10,s);r=Math.round(r*l)/l}return r}function to(e,t,r,o){t=Number(t),r=Number(r);let i=(e-(isNaN(t)?0:t))%o,s=ah(Math.abs(i)*2>=o?e+Math.sign(i)*(o-Math.abs(i)):e-i,o);return isNaN(t)?!isNaN(r)&&s>r&&(s=Math.floor(ah(r/o,o))*o):s<t?s=t:!isNaN(r)&&s>r&&(s=t+Math.floor(ah((r-t)/o,o))*o),s=ah(s,o),s}const D4=Symbol("default");function Ld({values:e,children:t}){for(let[r,o]of e)t=g.createElement(r.Provider,{value:o},t);return t}function ro(e){let{className:t,style:r,children:o,defaultClassName:i,defaultChildren:s,defaultStyle:l,values:c}=e;return g.useMemo(()=>{let u,d,f;return typeof t=="function"?u=t({...c,defaultClassName:i}):u=t,typeof r=="function"?d=r({...c,defaultStyle:l||{}}):d=r,typeof o=="function"?f=o({...c,defaultChildren:s}):o==null?f=s:f=o,{className:u??i,style:d||l?{...l,...d}:void 0,children:f??s,"data-rac":""}},[t,r,o,i,s,l,c])}function nh(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function Od(e,t){let r=g.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let o=t||D4;if(!r.slots[o]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),s=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${s} Valid slot names are ${i}.`)}return r.slots[o]}return r}function ao(e,t,r){let o=Od(r,e.slot)||{},{ref:i,...s}=o,l=dL(g.useMemo(()=>AFe(t,i),[t,i])),c=ct(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?c.style=u=>{let d=typeof s.style=="function"?s.style(u):s.style,f={...u.defaultStyle,...d},p=typeof e.style=="function"?e.style({...u,defaultStyle:f}):e.style;return{...f,...p}}:c.style={...s.style,...e.style}),[c,l]}function vL(e=!0){let[t,r]=g.useState(e),o=g.useRef(!1),i=g.useCallback(s=>{o.current=!0,r(!!s)},[]);return La(()=>{o.current||r(!1)},[]),[i,t]}function $L(e){const t=/^(data-.*)$/;let r={};for(const o in e)t.test(o)||(r[o]=e[o]);return r}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const ZFe=g.createContext(!1);function CL(e){let t=(r,o)=>g.useContext(ZFe)?null:e(r,o);return t.displayName=e.displayName||e.name,g.forwardRef(t)}let Vl="default",S4="",oh=new WeakMap;function xL(e){if(Qg()){if(Vl==="default"){const t=Wt(e);S4=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Vl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";oh.set(e,e.style[t]),e.style[t]="none"}}function P4(e){if(Qg()){if(Vl!=="disabled")return;Vl="restoring",setTimeout(()=>{uL(()=>{if(Vl==="restoring"){const t=Wt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=S4||""),S4="",Vl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&oh.has(e)){let t=oh.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),oh.delete(e)}}const wL=g.createContext({register:()=>{}});wL.displayName="PressResponderContext";class AL{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function EL(e){let t=g.useRef({isFocused:!1,observer:null});La(()=>{const o=t.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let r=ir(o=>{e==null||e(o)});return g.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=o.target,s=l=>{t.current.isFocused=!1,i.disabled&&r(new AL("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let c=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let ih=!1;function TL(e){for(;e&&!yL(e);)e=e.parentElement;let t=Wr(e),r=t.document.activeElement;if(!r||r===e)return;ih=!0;let o=!1,i=f=>{(f.target===r||o)&&f.stopImmediatePropagation()},s=f=>{(f.target===r||o)&&(f.stopImmediatePropagation(),!e&&!o&&(o=!0,Hi(r),u()))},l=f=>{(f.target===e||o)&&f.stopImmediatePropagation()},c=f=>{(f.target===e||o)&&(f.stopImmediatePropagation(),o||(o=!0,Hi(r),u()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",c,!0),t.addEventListener("focus",l,!0);let u=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",c,!0),t.removeEventListener("focus",l,!0),ih=!1,o=!1},d=requestAnimationFrame(u);return u}function WFe(e,t){return t.get?t.get.call(e):t.value}function _L(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function qFe(e,t){var r=_L(e,t,"get");return WFe(e,r)}function UFe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bd(e,t,r){UFe(e,t),t.set(e,r)}function HFe(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function DL(e,t,r){var o=_L(e,t,"set");return HFe(e,o,r),r}function XFe(e){let t=g.useContext(wL);if(t){let{register:r,...o}=t;e=ct(o,e),r()}return pL(t,e.ref),e}var sh=new WeakMap;class lh{continuePropagation(){DL(this,sh,!1)}get shouldStopPropagation(){return qFe(this,sh)}constructor(t,r,o,i){Bd(this,sh,{writable:!0,value:void 0}),DL(this,sh,!0);var s;let l=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:o.currentTarget;const c=l==null?void 0:l.getBoundingClientRect();let u,d=0,f,p=null;o.clientX!=null&&o.clientY!=null&&(f=o.clientX,p=o.clientY),c&&(f!=null&&p!=null?(u=f-c.left,d=p-c.top):(u=c.width/2,d=c.height/2)),this.type=t,this.pointerType=r,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey,this.x=u,this.y=d}}const SL=Symbol("linkClicked");function I4(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:i,onPressUp:s,isDisabled:l,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...m}=XFe(e),[b,h]=g.useState(!1),y=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=eh(),C=ir((A,I)=>{let O=y.current;if(l||O.didFirePressStart)return!1;let j=!0;if(O.isTriggeringEvent=!0,o){let V=new lh("pressstart",I,A);o(V),j=V.shouldStopPropagation}return r&&r(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,h(!0),j}),T=ir((A,I,O=!0)=>{let j=y.current;if(!j.didFirePressStart)return!1;j.didFirePressStart=!1,j.isTriggeringEvent=!0;let V=!0;if(i){let k=new lh("pressend",I,A);i(k),V=k.shouldStopPropagation}if(r&&r(!1),h(!1),t&&O&&!l){let k=new lh("press",I,A);t(k),V&&(V=k.shouldStopPropagation)}return j.isTriggeringEvent=!1,V}),x=ir((A,I)=>{let O=y.current;if(l)return!1;if(s){O.isTriggeringEvent=!0;let j=new lh("pressup",I,A);return s(j),O.isTriggeringEvent=!1,j.shouldStopPropagation}return!0}),w=ir(A=>{let I=y.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&T(Gl(I.target,A),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,$(),f||P4(I.target);for(let O of I.disposables)O();I.disposables=[]}}),S=ir(A=>{d&&w(A)}),P=g.useMemo(()=>{let A=y.current,I={onKeyDown(j){if(k4(j.nativeEvent,j.currentTarget)&&$t(j.currentTarget,vt(j.nativeEvent))){var V;jL(vt(j.nativeEvent),j.key)&&j.preventDefault();let k=!0;if(!A.isPressed&&!j.repeat){A.target=j.currentTarget,A.isPressed=!0,A.pointerType="keyboard",k=C(j,"keyboard");let Z=j.currentTarget,U=X=>{k4(X,Z)&&!X.repeat&&$t(Z,vt(X))&&A.target&&x(Gl(A.target,X),"keyboard")};v(Wt(j.currentTarget),"keyup",b4(U,O),!0)}k&&j.stopPropagation(),j.metaKey&&Fl()&&((V=A.metaKeyEvents)===null||V===void 0||V.set(j.key,j.nativeEvent))}else j.key==="Meta"&&(A.metaKeyEvents=new Map)},onClick(j){if(!(j&&!$t(j.currentTarget,vt(j.nativeEvent)))&&j&&j.button===0&&!A.isTriggeringEvent&&!Nd.isOpening){let V=!0;if(l&&j.preventDefault(),!A.ignoreEmulatedMouseEvents&&!A.isPressed&&(A.pointerType==="virtual"||A4(j.nativeEvent))){let k=C(j,"virtual"),Z=x(j,"virtual"),U=T(j,"virtual");V=k&&Z&&U}else if(A.isPressed&&A.pointerType!=="keyboard"){let k=A.pointerType||j.nativeEvent.pointerType||"virtual";V=T(Gl(j.currentTarget,j),k,!0),A.isOverTarget=!1,w(j)}A.ignoreEmulatedMouseEvents=!1,V&&j.stopPropagation()}}},O=j=>{var V;if(A.isPressed&&A.target&&k4(j,A.target)){var k;jL(vt(j),j.key)&&j.preventDefault();let U=vt(j);T(Gl(A.target,j),"keyboard",$t(A.target,vt(j))),$(),j.key!=="Enter"&&j4(A.target)&&$t(A.target,U)&&!j[SL]&&(j[SL]=!0,Nd(A.target,j,!1)),A.isPressed=!1,(k=A.metaKeyEvents)===null||k===void 0||k.delete(j.key)}else if(j.key==="Meta"&&(!((V=A.metaKeyEvents)===null||V===void 0)&&V.size)){var Z;let U=A.metaKeyEvents;A.metaKeyEvents=void 0;for(let X of U.values())(Z=A.target)===null||Z===void 0||Z.dispatchEvent(new KeyboardEvent("keyup",X))}};if(typeof PointerEvent<"u"){I.onPointerDown=k=>{if(k.button!==0||!$t(k.currentTarget,vt(k.nativeEvent)))return;if(RFe(k.nativeEvent)){A.pointerType="virtual";return}A.pointerType=k.pointerType;let Z=!0;if(!A.isPressed){A.isPressed=!0,A.isOverTarget=!0,A.activePointerId=k.pointerId,A.target=k.currentTarget,f||xL(A.target),Z=C(k,A.pointerType);let U=vt(k.nativeEvent);"releasePointerCapture"in U&&U.releasePointerCapture(k.pointerId),v(Wt(k.currentTarget),"pointerup",j,!1),v(Wt(k.currentTarget),"pointercancel",V,!1)}Z&&k.stopPropagation()},I.onMouseDown=k=>{if($t(k.currentTarget,vt(k.nativeEvent))&&k.button===0){if(u){let Z=TL(k.target);Z&&A.disposables.push(Z)}k.stopPropagation()}},I.onPointerUp=k=>{!$t(k.currentTarget,vt(k.nativeEvent))||A.pointerType==="virtual"||k.button===0&&x(k,A.pointerType||k.pointerType)},I.onPointerEnter=k=>{k.pointerId===A.activePointerId&&A.target&&!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,C(Gl(A.target,k),A.pointerType))},I.onPointerLeave=k=>{k.pointerId===A.activePointerId&&A.target&&A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,T(Gl(A.target,k),A.pointerType,!1),S(k))};let j=k=>{if(k.pointerId===A.activePointerId&&A.isPressed&&k.button===0&&A.target){if($t(A.target,vt(k))&&A.pointerType!=null){let Z=!1,U=setTimeout(()=>{A.isPressed&&A.target instanceof HTMLElement&&(Z?w(k):(Hi(A.target),A.target.click()))},80);v(k.currentTarget,"click",()=>Z=!0,!0),A.disposables.push(()=>clearTimeout(U))}else w(k);A.isOverTarget=!1}},V=k=>{w(k)};I.onDragStart=k=>{$t(k.currentTarget,vt(k.nativeEvent))&&w(k)}}else{I.onMouseDown=k=>{if(k.button!==0||!$t(k.currentTarget,vt(k.nativeEvent)))return;if(A.ignoreEmulatedMouseEvents){k.stopPropagation();return}if(A.isPressed=!0,A.isOverTarget=!0,A.target=k.currentTarget,A.pointerType=A4(k.nativeEvent)?"virtual":"mouse",bf.flushSync(()=>C(k,A.pointerType))&&k.stopPropagation(),u){let U=TL(k.target);U&&A.disposables.push(U)}v(Wt(k.currentTarget),"mouseup",j,!1)},I.onMouseEnter=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;let Z=!0;A.isPressed&&!A.ignoreEmulatedMouseEvents&&A.pointerType!=null&&(A.isOverTarget=!0,Z=C(k,A.pointerType)),Z&&k.stopPropagation()},I.onMouseLeave=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;let Z=!0;A.isPressed&&!A.ignoreEmulatedMouseEvents&&A.pointerType!=null&&(A.isOverTarget=!1,Z=T(k,A.pointerType,!1),S(k)),Z&&k.stopPropagation()},I.onMouseUp=k=>{$t(k.currentTarget,vt(k.nativeEvent))&&!A.ignoreEmulatedMouseEvents&&k.button===0&&x(k,A.pointerType||"mouse")};let j=k=>{if(k.button===0){if(A.ignoreEmulatedMouseEvents){A.ignoreEmulatedMouseEvents=!1;return}A.target&&A.target.contains(k.target)&&A.pointerType!=null||w(k),A.isOverTarget=!1}};I.onTouchStart=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;let Z=YFe(k.nativeEvent);if(!Z)return;A.activePointerId=Z.identifier,A.ignoreEmulatedMouseEvents=!0,A.isOverTarget=!0,A.isPressed=!0,A.target=k.currentTarget,A.pointerType="touch",f||xL(A.target),C(ei(A.target,k),A.pointerType)&&k.stopPropagation(),v(Wr(k.currentTarget),"scroll",V,!0)},I.onTouchMove=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;if(!A.isPressed){k.stopPropagation();return}let Z=PL(k.nativeEvent,A.activePointerId),U=!0;Z&&IL(Z,k.currentTarget)?!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,U=C(ei(A.target,k),A.pointerType)):A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,U=T(ei(A.target,k),A.pointerType,!1),S(ei(A.target,k))),U&&k.stopPropagation()},I.onTouchEnd=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;if(!A.isPressed){k.stopPropagation();return}let Z=PL(k.nativeEvent,A.activePointerId),U=!0;Z&&IL(Z,k.currentTarget)&&A.pointerType!=null?(x(ei(A.target,k),A.pointerType),U=T(ei(A.target,k),A.pointerType)):A.isOverTarget&&A.pointerType!=null&&(U=T(ei(A.target,k),A.pointerType,!1)),U&&k.stopPropagation(),A.isPressed=!1,A.activePointerId=null,A.isOverTarget=!1,A.ignoreEmulatedMouseEvents=!0,A.target&&!f&&P4(A.target),$()},I.onTouchCancel=k=>{$t(k.currentTarget,vt(k.nativeEvent))&&(k.stopPropagation(),A.isPressed&&w(ei(A.target,k)))};let V=k=>{A.isPressed&&$t(vt(k),A.target)&&w({currentTarget:A.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};I.onDragStart=k=>{$t(k.currentTarget,vt(k.nativeEvent))&&w(k)}}return I},[v,l,u,$,f,w,S,T,C,x]);return g.useEffect(()=>{let A=y.current;return()=>{var I;f||P4((I=A.target)!==null&&I!==void 0?I:void 0);for(let O of A.disposables)O();A.disposables=[]}},[f]),{isPressed:c||b,pressProps:ct(m,P)}}function j4(e){return e.tagName==="A"&&e.hasAttribute("href")}function k4(e,t){const{key:r,code:o}=e,i=t,s=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||o==="Space")&&!(i instanceof Wr(i).HTMLInputElement&&!kL(i,r)||i instanceof Wr(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&j4(i))&&r!=="Enter")}function YFe(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function PL(e,t){const r=e.changedTouches;for(let o=0;o<r.length;o++){const i=r[o];if(i.identifier===t)return i}return null}function ei(e,t){let r=0,o=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,o=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o}}function Gl(e,t){let r=t.clientX,o=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o}}function JFe(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function KFe(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function IL(e,t){let r=t.getBoundingClientRect(),o=JFe(e);return KFe(r,o)}function QFe(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!j4(e)}function jL(e,t){return e instanceof HTMLInputElement?!kL(e,t):QFe(e)}const eRe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kL(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":eRe.has(e.type)}let Yi=null,N4=new Set,Md=new Map,Ji=!1,L4=!1;const tRe={Tab:!0,Escape:!0};function ch(e,t){for(let r of N4)r(e,t)}function rRe(e){return!(e.metaKey||!Fl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function uh(e){Ji=!0,rRe(e)&&(Yi="keyboard",ch("keyboard",e))}function la(e){Yi="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ji=!0,ch("pointer",e))}function NL(e){A4(e)&&(Ji=!0,Yi="virtual")}function LL(e){e.target===window||e.target===document||ih||!e.isTrusted||(!Ji&&!L4&&(Yi="virtual",ch("virtual",e)),Ji=!1,L4=!1)}function OL(){ih||(Ji=!1,L4=!0)}function O4(e){if(typeof window>"u"||Md.get(Wr(e)))return;const t=Wr(e),r=Wt(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ji=!0,o.apply(this,arguments)},r.addEventListener("keydown",uh,!0),r.addEventListener("keyup",uh,!0),r.addEventListener("click",NL,!0),t.addEventListener("focus",LL,!0),t.addEventListener("blur",OL,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",la,!0),r.addEventListener("pointermove",la,!0),r.addEventListener("pointerup",la,!0)):(r.addEventListener("mousedown",la,!0),r.addEventListener("mousemove",la,!0),r.addEventListener("mouseup",la,!0)),t.addEventListener("beforeunload",()=>{BL(e)},{once:!0}),Md.set(t,{focus:o})}const BL=(e,t)=>{const r=Wr(e),o=Wt(e);t&&o.removeEventListener("DOMContentLoaded",t),Md.has(r)&&(r.HTMLElement.prototype.focus=Md.get(r).focus,o.removeEventListener("keydown",uh,!0),o.removeEventListener("keyup",uh,!0),o.removeEventListener("click",NL,!0),r.removeEventListener("focus",LL,!0),r.removeEventListener("blur",OL,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",la,!0),o.removeEventListener("pointermove",la,!0),o.removeEventListener("pointerup",la,!0)):(o.removeEventListener("mousedown",la,!0),o.removeEventListener("mousemove",la,!0),o.removeEventListener("mouseup",la,!0)),Md.delete(r))};function aRe(e){const t=Wt(e);let r;return t.readyState!=="loading"?O4(e):(r=()=>{O4(e)},t.addEventListener("DOMContentLoaded",r)),()=>BL(e,r)}typeof document<"u"&&aRe();function ML(){return Yi!=="pointer"}function FL(){return Yi}function nRe(e){Yi=e,ch(e,null)}const oRe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function iRe(e,t,r){let o=Wt(r==null?void 0:r.target);const i=typeof window<"u"?Wr(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Wr(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Wr(r==null?void 0:r.target).HTMLElement:HTMLElement,c=typeof window<"u"?Wr(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||o.activeElement instanceof i&&!oRe.has(o.activeElement.type)||o.activeElement instanceof s||o.activeElement instanceof l&&o.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof c&&!tRe[r.key])}function sRe(e,t,r){O4(),g.useEffect(()=>{let o=(i,s)=>{iRe(!!(r!=null&&r.isTextInput),i,s)&&e(ML())};return N4.add(o),()=>{N4.delete(o)}},t)}function dh(e){const t=Wt(e),r=Ui(t);if(FL()==="virtual"){let o=r;uL(()=>{Ui(t)===o&&e.isConnected&&Hi(e)})}else Hi(e)}function B4(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:i}=e;const s=g.useCallback(u=>{if(u.target===u.currentTarget)return o&&o(u),i&&i(!1),!0},[o,i]),l=EL(s),c=g.useCallback(u=>{const d=Wt(u.target),f=d?Ui(d):Ui();u.target===u.currentTarget&&f===vt(u.nativeEvent)&&(r&&r(u),i&&i(!0),l(u))},[i,r,l]);return{focusProps:{onFocus:!t&&(r||i||o)?c:void 0,onBlur:!t&&(o||i)?s:void 0}}}function RL(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function lRe(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:RL(e.onKeyDown),onKeyUp:RL(e.onKeyUp)}}}let cRe=g.createContext(null);function uRe(e){let t=g.useContext(cRe)||{};pL(t,e);let{ref:r,...o}=t;return o}function VL(e,t){let{focusProps:r}=B4(e),{keyboardProps:o}=lRe(e),i=ct(r,o),s=uRe(t),l=e.isDisabled?{}:s,c=g.useRef(e.autoFocus);g.useEffect(()=>{c.current&&t.current&&dh(t.current),c.current=!1},[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:ct({...i,tabIndex:u},l)}}function Fd(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:i}=e,s=g.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:c}=eh(),u=g.useCallback(p=>{p.currentTarget.contains(p.target)&&s.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(s.current.isFocusWithin=!1,c(),r&&r(p),i&&i(!1))},[r,i,s,c]),d=EL(u),f=g.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const m=Wt(p.target),b=Ui(m);if(!s.current.isFocusWithin&&b===vt(p.nativeEvent)){o&&o(p),i&&i(!0),s.current.isFocusWithin=!0,d(p);let h=p.currentTarget;l(m,"focus",y=>{if(s.current.isFocusWithin&&!$t(h,y.target)){let v=new AL("blur",new m.defaultView.FocusEvent("blur",{relatedTarget:y.target}));v.target=h,v.currentTarget=h,u(v)}},{capture:!0})}},[o,i,d,l,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}let fh=!1,M4=0;function F4(){fh=!0,setTimeout(()=>{fh=!1},50)}function GL(e){e.pointerType==="touch"&&F4()}function dRe(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",GL):document.addEventListener("touchend",F4),M4++,()=>{M4--,!(M4>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",GL):document.removeEventListener("touchend",F4))}}function Rd(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:i}=e,[s,l]=g.useState(!1),c=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(dRe,[]);let{addGlobalListener:u,removeAllGlobalListeners:d}=eh(),{hoverProps:f,triggerHoverEnd:p}=g.useMemo(()=>{let m=(y,v)=>{if(c.pointerType=v,i||v==="touch"||c.isHovered||!y.currentTarget.contains(y.target))return;c.isHovered=!0;let $=y.currentTarget;c.target=$,u(Wt(y.target),"pointerover",C=>{c.isHovered&&c.target&&!$t(c.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:$,pointerType:v}),r&&r(!0),l(!0)},b=(y,v)=>{let $=c.target;c.pointerType="",c.target=null,!(v==="touch"||!c.isHovered||!$)&&(c.isHovered=!1,d(),o&&o({type:"hoverend",target:$,pointerType:v}),r&&r(!1),l(!1))},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=y=>{fh&&y.pointerType==="mouse"||m(y,y.pointerType)},h.onPointerLeave=y=>{!i&&y.currentTarget.contains(y.target)&&b(y,y.pointerType)}):(h.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=y=>{!c.ignoreEmulatedMouseEvents&&!fh&&m(y,"mouse"),c.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=y=>{!i&&y.currentTarget.contains(y.target)&&b(y,"mouse")}),{hoverProps:h,triggerHoverEnd:b}},[t,r,o,i,c,u,d]);return g.useEffect(()=>{i&&p({currentTarget:c.target},c.pointerType)},[i]),{hoverProps:f,isHovered:s}}function fRe(e,t){let{onScroll:r,isDisabled:o}=e,i=g.useCallback(s=>{s.ctrlKey||(s.preventDefault(),s.stopPropagation(),r&&r({deltaX:s.deltaX,deltaY:s.deltaY}))},[r]);rh(t,"wheel",o?void 0:i)}const pRe=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),mRe=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function gRe(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return pRe.has(r.script)}let t=e.split("-")[0];return mRe.has(t)}const hRe=Symbol.for("react-aria.i18n.locale");function zL(){let e=typeof window<"u"&&window[hRe]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gRe(e)?"rtl":"ltr"}}let R4=zL(),Vd=new Set;function ZL(){R4=zL();for(let e of Vd)e(R4)}function bRe(){let e=iL(),[t,r]=g.useState(R4);return g.useEffect(()=>(Vd.size===0&&window.addEventListener("languagechange",ZL),Vd.add(r),()=>{Vd.delete(r),Vd.size===0&&window.removeEventListener("languagechange",ZL)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const yRe=g.createContext(null);function kr(){let e=bRe();return g.useContext(yRe)||e}var mn=function(){return mn=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},mn.apply(this,arguments)};function WL(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r}function vRe(e,t,r){if(r||arguments.length===2)for(var o=0,i=t.length,s;o<i;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;const $Re=Symbol.for("react-aria.i18n.locale"),CRe=Symbol.for("react-aria.i18n.strings");let zl;class Ki{getStringForLocale(t,r){let i=this.getStringsForLocale(r)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${r} locale`);return i}getStringsForLocale(t){let r=this.strings[t];return r||(r=xRe(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[$Re];if(zl===void 0){let i=window[CRe];if(!i)return null;zl={};for(let s in i)zl[s]=new Ki({[r]:i[s]},r)}let o=zl==null?void 0:zl[t];if(!o)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,o])=>o)),this.defaultLocale=r}}function xRe(e,t,r="en-US"){if(t[e])return t[e];let o=wRe(e);if(t[o])return t[o];for(let i in t)if(i.startsWith(o+"-"))return t[i];return t[r]}function wRe(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const qL=new Map,UL=new Map;class HL{format(t,r){let o=this.strings.getStringForLocale(t,this.locale);return typeof o=="function"?o(r,this):o}plural(t,r,o="cardinal"){let i=r["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+o,l=qL.get(s);l||(l=new Intl.PluralRules(this.locale,{type:o}),qL.set(s,l));let c=l.select(t);return i=r[c]||r.other,typeof i=="function"?i():i}number(t){let r=UL.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),UL.set(this.locale,r)),r.format(t)}select(t,r){let o=t[r]||t.other;return typeof o=="function"?o():o}constructor(t,r){this.locale=t,this.strings=r}}const XL=new WeakMap;function ARe(e){let t=XL.get(e);return t||(t=new Ki(e),XL.set(e,t)),t}function YL(e,t){return t&&Ki.getGlobalDictionaryForPackage(t)||ARe(e)}function ti(e,t){let{locale:r}=kr(),o=YL(e,t);return g.useMemo(()=>new HL(r,o),[r,o])}function Zl(e,t){return e-t*Math.floor(e/t)}const JL=1721426;function Qi(e,t,r,o){t=Gd(e,t);let i=t-1,s=-2;return r<=2?s=0:ri(t)&&(s=-1),JL-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+s+o)}function ri(e){return e%4===0&&(e%100!==0||e%400===0)}function Gd(e,t){return e==="BC"?1-t:t}function ph(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const ERe={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class qr{fromJulianDay(t){let r=t,o=r-JL,i=Math.floor(o/146097),s=Zl(o,146097),l=Math.floor(s/36524),c=Zl(s,36524),u=Math.floor(c/1461),d=Zl(c,1461),f=Math.floor(d/365),p=i*400+l*100+u*4+f+(l!==4&&f!==4?1:0),[m,b]=ph(p),h=r-Qi(m,b,1,1),y=2;r<Qi(m,b,3,1)?y=0:ri(b)&&(y=1);let v=Math.floor(((h+y)*12+373)/367),$=r-Qi(m,b,v,1)+1;return new Lt(m,b,v,$)}toJulianDay(t){return Qi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return ERe[ri(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ri(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const TRe={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Mt(e,t){return t=At(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function _Re(e,t){return t=At(t,e.calendar),e=es(e),t=es(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function DRe(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function SRe(e,t){return Mt(e,G4(t))}const PRe={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function V4(e,t,r){let o=e.calendar.toJulianDay(e),i=r?PRe[r]:ORe(t),s=Math.ceil(o+1-i)%7;return s<0&&(s+=7),s}function KL(e){return oo(Date.now(),e)}function G4(e){return Oa(KL(e))}function QL(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function e5(e,t){return t5(e)-t5(t)}function t5(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let z4=null;function ai(){return z4==null&&(z4=new Intl.DateTimeFormat().resolvedOptions().timeZone),z4}function es(e){return e.subtract({days:e.day-1})}function mh(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function IRe(e){return es(e.subtract({months:e.month-1}))}function jRe(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function kRe(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function zd(e,t,r){let o=V4(e,t,r);return e.subtract({days:o})}function NRe(e,t,r){return zd(e,t,r).add({days:6})}const r5=new Map;function LRe(e){if(Intl.Locale){let r=r5.get(e);return r||(r=new Intl.Locale(e).maximize().region,r&&r5.set(e,r)),r}let t=e.split("-")[1];return t==="u"?void 0:t}function ORe(e){let t=LRe(e);return t&&TRe[t]||0}function BRe(e,t,r){let o=e.calendar.getDaysInMonth(e);return Math.ceil((V4(es(e),t,r)+o)/7)}function a5(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function n5(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Wl(e){e=At(e,new qr);let t=Gd(e.era,e.year);return o5(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function o5(e,t,r,o,i,s,l){let c=new Date;return c.setUTCHours(o,i,s,l),c.setUTCFullYear(e,t-1,r),c.getTime()}function Z4(e,t){if(t==="UTC")return 0;if(e>0&&t===ai())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:i,hour:s,minute:l,second:c}=s5(e,t);return o5(r,o,i,s,l,c,0)-Math.floor(e/1e3)*1e3}const i5=new Map;function s5(e,t){let r=i5.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),i5.set(t,r));let o=r.formatToParts(new Date(e)),i={};for(let s of o)s.type!=="literal"&&(i[s.type]=s.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const l5=864e5;function MRe(e,t,r,o){return(r===o?[r]:[r,o]).filter(s=>FRe(e,t,s))}function FRe(e,t,r){let o=s5(r,t);return e.year===o.year&&e.month===o.month&&e.day===o.day&&e.hour===o.hour&&e.minute===o.minute&&e.second===o.second}function no(e,t,r="compatible"){let o=gn(e);if(t==="UTC")return Wl(o);if(t===ai()&&r==="compatible"){o=At(o,new qr);let u=new Date,d=Gd(o.era,o.year);return u.setFullYear(d,o.month-1,o.day),u.setHours(o.hour,o.minute,o.second,o.millisecond),u.getTime()}let i=Wl(o),s=Z4(i-l5,t),l=Z4(i+l5,t),c=MRe(o,t,i-s,i-l);if(c.length===1)return c[0];if(c.length>1)switch(r){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(i-s,i-l);case"compatible":case"later":return Math.max(i-s,i-l);case"reject":throw new RangeError("No such absolute time found")}}function c5(e,t,r="compatible"){return new Date(no(e,t,r))}function oo(e,t){let r=Z4(e,t),o=new Date(e+r),i=o.getUTCFullYear(),s=o.getUTCMonth()+1,l=o.getUTCDate(),c=o.getUTCHours(),u=o.getUTCMinutes(),d=o.getUTCSeconds(),f=o.getUTCMilliseconds();return new ql(i<1?"BC":"AD",i<1?-i+1:i,s,l,t,r,c,u,d,f)}function Oa(e){return new Lt(e.calendar,e.era,e.year,e.month,e.day)}function gn(e,t){let r=0,o=0,i=0,s=0;if("timeZone"in e)({hour:r,minute:o,second:i,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:o,second:i,millisecond:s}=t),new yh(e.calendar,e.era,e.year,e.month,e.day,r,o,i,s)}function At(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),o=e.copy();return o.calendar=t,o.era=r.era,o.year=r.year,o.month=r.month,o.day=r.day,ts(o),o}function gh(e,t,r){if(e instanceof ql)return e.timeZone===t?e:u5(e,t);let o=no(e,t,r);return oo(o,t)}function RRe(e){let t=Wl(e)-e.offset;return new Date(t)}function u5(e,t){let r=Wl(e)-e.offset;return At(oo(r,t),e.calendar)}const Zd=36e5;function hh(e,t){let r=e.copy(),o="hour"in r?m5(r,t):0;W4(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,q4(r),d5(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,VRe(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){var s,l;let u=(s=(l=r.calendar).isInverseEra)===null||s===void 0?void 0:s.call(l,r);r.year=i,r.month=u?1:r.calendar.getMonthsInYear(r),r.day=u?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let c=r.calendar.getMonthsInYear(r);return r.month>c&&(r.month=c,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function W4(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t}function q4(e){for(;e.month<1;)W4(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,W4(e,1)}function VRe(e){for(;e.day<1;)e.month--,q4(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,q4(e)}function d5(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function ts(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),d5(e)}function U4(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function f5(e,t){return hh(e,U4(t))}function H4(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),ts(r),r}function Wd(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),p5(r),r}function GRe(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=bh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=bh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=bh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=bh(e.hour,24),t}function p5(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function bh(e,t){let r=e%t;return r<0&&(r+=t),r}function m5(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,GRe(e)}function g5(e,t){let r=e.copy();return m5(r,t),r}function zRe(e,t){return g5(e,U4(t))}function X4(e,t,r,o){let i=e.copy();switch(t){case"era":{let c=e.calendar.getEras(),u=c.indexOf(e.era);if(u<0)throw new Error("Invalid era: "+e.era);u=io(u,r,0,c.length-1,o==null?void 0:o.round),i.era=c[u],ts(i);break}case"year":var s,l;!((s=(l=i.calendar).isInverseEra)===null||s===void 0)&&s.call(l,i)&&(r=-r),i.year=io(e.year,r,-1/0,9999,o==null?void 0:o.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=io(e.month,r,1,e.calendar.getMonthsInYear(e),o==null?void 0:o.round);break;case"day":i.day=io(e.day,r,1,e.calendar.getDaysInMonth(e),o==null?void 0:o.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ts(i),i}function Y4(e,t,r,o){let i=e.copy();switch(t){case"hour":{let s=e.hour,l=0,c=23;if((o==null?void 0:o.hourCycle)===12){let u=s>=12;l=u?12:0,c=u?23:11}i.hour=io(s,r,l,c,o==null?void 0:o.round);break}case"minute":i.minute=io(e.minute,r,0,59,o==null?void 0:o.round);break;case"second":i.second=io(e.second,r,0,59,o==null?void 0:o.round);break;case"millisecond":i.millisecond=io(e.millisecond,r,0,999,o==null?void 0:o.round);break;default:throw new Error("Unsupported field "+t)}return i}function io(e,t,r,o,i=!1){if(i){e+=Math.sign(t),e<r&&(e=o);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>o&&(e=r)}else e+=t,e<r?e=o-(r-e-1):e>o&&(e=r+(e-o-1));return e}function h5(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=hh(gn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=no(i,e.timeZone)}else r=Wl(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=oo(r,e.timeZone);return At(o,e.calendar)}function ZRe(e,t){return h5(e,U4(t))}function WRe(e,t,r,o){switch(t){case"hour":{let i=0,s=23;if((o==null?void 0:o.hourCycle)===12){let h=e.hour>=12;i=h?12:0,s=h?23:11}let l=gn(e),c=At(Wd(l,{hour:i}),new qr),u=[no(c,e.timeZone,"earlier"),no(c,e.timeZone,"later")].filter(h=>oo(h,e.timeZone).day===c.day)[0],d=At(Wd(l,{hour:s}),new qr),f=[no(d,e.timeZone,"earlier"),no(d,e.timeZone,"later")].filter(h=>oo(h,e.timeZone).day===d.day).pop(),p=Wl(e)-e.offset,m=Math.floor(p/Zd),b=p%Zd;return p=io(m,r,Math.floor(u/Zd),Math.floor(f/Zd),o==null?void 0:o.round)*Zd+b,At(oo(p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Y4(e,t,r,o);case"era":case"year":case"month":case"day":{let i=X4(gn(e),t,r,o),s=no(i,e.timeZone);return At(oo(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function qRe(e,t,r){let o=gn(e),i=Wd(H4(o,t),t);if(i.compare(o)===0)return e;let s=no(i,e.timeZone,r);return At(oo(s,e.timeZone),e.calendar)}const URe=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,HRe=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function XRe(e){let t=e.match(URe);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let r=new Lt(ca(t[1],0,9999),ca(t[2],1,12),1);return r.day=ca(t[3],0,r.calendar.getDaysInMonth(r)),r}function b5(e,t){let r=e.match(HRe);if(!r)throw new Error("Invalid ISO 8601 date time string: "+e);let o=ca(r[1],-9999,9999),i=o<1?"BC":"AD",s=new ql(i,o<1?-o+1:o,ca(r[2],1,12),1,t,0,r[4]?ca(r[4],0,23):0,r[5]?ca(r[5],0,59):0,r[6]?ca(r[6],0,59):0,r[7]?ca(r[7],0,1/0)*1e3:0);s.day=ca(r[3],0,s.calendar.getDaysInMonth(s));var l;return r[8]&&(s.offset=ca(r[8],-23,23)*36e5+ca((l=r[9])!==null&&l!==void 0?l:"0",0,59)*6e4),u5(s,t)}function ca(e,t,r){let o=Number(e);if(o<t||o>r)throw new RangeError(`Value out of range: ${t} <= ${o} <= ${r}`);return o}function y5(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function v5(e){let t=At(e,new qr),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function $5(e){return`${v5(e)}T${y5(e)}`}function YRe(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),o=e%36e5/6e4;return`${t}${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`}function JRe(e){return`${$5(e)}${YRe(e.offset)}[${e.timeZone}]`}function J4(e){let t=typeof e[0]=="object"?e.shift():new qr,r;if(typeof e[0]=="string")r=e.shift();else{let l=t.getEras();r=l[l.length-1]}let o=e.shift(),i=e.shift(),s=e.shift();return[t,r,o,i,s]}var KRe=new WeakMap;class Lt{copy(){return this.era?new Lt(this.calendar,this.era,this.year,this.month,this.day):new Lt(this.calendar,this.year,this.month,this.day)}add(t){return hh(this,t)}subtract(t){return f5(this,t)}set(t){return H4(this,t)}cycle(t,r,o){return X4(this,t,r,o)}toDate(t){return c5(this,t)}toString(){return v5(this)}compare(t){return QL(this,t)}constructor(...t){Bd(this,KRe,{writable:!0,value:void 0});let[r,o,i,s,l]=J4(t);this.calendar=r,this.era=o,this.year=i,this.month=s,this.day=l,ts(this)}}var QRe=new WeakMap;class K4{copy(){return new K4(this.hour,this.minute,this.second,this.millisecond)}add(t){return g5(this,t)}subtract(t){return zRe(this,t)}set(t){return Wd(this,t)}cycle(t,r,o){return Y4(this,t,r,o)}toString(){return y5(this)}compare(t){return e5(this,t)}constructor(t=0,r=0,o=0,i=0){Bd(this,QRe,{writable:!0,value:void 0}),this.hour=t,this.minute=r,this.second=o,this.millisecond=i,p5(this)}}var e7e=new WeakMap;class yh{copy(){return this.era?new yh(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new yh(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return hh(this,t)}subtract(t){return f5(this,t)}set(t){return H4(Wd(this,t),t)}cycle(t,r,o){switch(t){case"era":case"year":case"month":case"day":return X4(this,t,r,o);default:return Y4(this,t,r,o)}}toDate(t,r){return c5(this,t,r)}toString(){return $5(this)}compare(t){let r=QL(this,t);return r===0?e5(this,gn(t)):r}constructor(...t){Bd(this,e7e,{writable:!0,value:void 0});let[r,o,i,s,l]=J4(t);this.calendar=r,this.era=o,this.year=i,this.month=s,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ts(this)}}var t7e=new WeakMap;class ql{copy(){return this.era?new ql(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ql(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return h5(this,t)}subtract(t){return ZRe(this,t)}set(t,r){return qRe(this,t,r)}cycle(t,r,o){return WRe(this,t,r,o)}toDate(){return RRe(this)}toString(){return JRe(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-gh(t,this.timeZone).toDate().getTime()}constructor(...t){Bd(this,t7e,{writable:!0,value:void 0});let[r,o,i,s,l]=J4(t),c=t.shift(),u=t.shift();this.calendar=r,this.era=o,this.year=i,this.month=s,this.day=l,this.timeZone=c,this.offset=u,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ts(this)}}const Ul=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],r7e=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],vh=[1867,1911,1925,1988,2018],ni=["meiji","taisho","showa","heisei","reiwa"];function C5(e){const t=Ul.findIndex(([r,o,i])=>e.year<r||e.year===r&&e.month<o||e.year===r&&e.month===o&&e.day<i);return t===-1?Ul.length-1:t===0?0:t-1}function Q4(e){let t=vh[ni.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Lt(e.year+t,e.month,e.day)}class a7e extends qr{fromJulianDay(t){let r=super.fromJulianDay(t),o=C5(r);return new Lt(this,ni[o],r.year-vh[o],r.month,r.day)}toJulianDay(t){return super.toJulianDay(Q4(t))}balanceDate(t){let r=Q4(t),o=C5(r);ni[o]!==t.era&&(t.era=ni[o],t.year=r.year-vh[o]),this.constrainDate(t)}constrainDate(t){let r=ni.indexOf(t.era),o=r7e[r];if(o!=null){let[i,s,l]=o,c=i-vh[r];t.year=Math.max(1,Math.min(c,t.year)),t.year===c&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(l,t.day)))}if(t.year===1&&r>=0){let[,i,s]=Ul[r];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return ni}getYearsInEra(t){let r=ni.indexOf(t.era),o=Ul[r],i=Ul[r+1];if(i==null)return 9999-o[0]+1;let s=i[0]-o[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth(Q4(t))}getMinimumMonthInYear(t){let r=x5(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=x5(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function x5(e){if(e.year===1){let t=ni.indexOf(e.era);return Ul[t]}}const w5=-543;class n7e extends qr{fromJulianDay(t){let r=super.fromJulianDay(t),o=Gd(r.era,r.year);return new Lt(this,o-w5,r.month,r.day)}toJulianDay(t){return super.toJulianDay(A5(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(A5(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function A5(e){let[t,r]=ph(e.year+w5);return new Lt(t,r,e.month,e.day)}const $h=1911;function E5(e){return e.era==="minguo"?e.year+$h:1-e.year+$h}function T5(e){let t=e-$h;return t>0?["minguo",t]:["before_minguo",1-t]}class o7e extends qr{fromJulianDay(t){let r=super.fromJulianDay(t),o=Gd(r.era,r.year),[i,s]=T5(o);return new Lt(this,i,s,r.month,r.day)}toJulianDay(t){return super.toJulianDay(_5(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,o]=T5(E5(t));t.era=r,t.year=o}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(_5(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-$h}constructor(...t){super(...t),this.identifier="roc"}}function _5(e){let[t,r]=ph(E5(e));return new Lt(t,r,e.month,e.day)}const D5=1948320,S5=[0,31,62,93,124,155,186,216,246,276,306,336];class i7e{fromJulianDay(t){let r=t-D5,o=1+Math.floor((33*r+3)/12053),i=365*(o-1)+Math.floor((8*o+21)/33),s=r-i,l=s<216?Math.floor(s/31):Math.floor((s-6)/30),c=s-S5[l]+1;return new Lt(this,o,l+1,c)}toJulianDay(t){let r=D5-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return r+=S5[t.month-1],r+=t.day,r}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Zl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const eC=78,P5=80;class s7e extends qr{fromJulianDay(t){let r=super.fromJulianDay(t),o=r.year-eC,i=t-Qi(r.era,r.year,1,1),s;i<P5?(o--,s=ri(r.year-1)?31:30,i+=s+155+90+10):(s=ri(r.year)?31:30,i-=P5);let l,c;if(i<s)l=1,c=i+1;else{let u=i-s;u<155?(l=Math.floor(u/31)+2,c=u%31+1):(u-=155,l=Math.floor(u/30)+7,c=u%30+1)}return new Lt(this,o,l,c)}toJulianDay(t){let r=t.year+eC,[o,i]=ph(r),s,l;return ri(i)?(s=31,l=Qi(o,i,3,21)):(s=30,l=Qi(o,i,3,22)),t.month===1?l+t.day-1:(l+=s+Math.min(t.month-2,5)*31,t.month>=8&&(l+=(t.month-7)*30),l+=t.day-1,l)}getDaysInMonth(t){return t.month===1&&ri(t.year+eC)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Ch=1948440,I5=1948439,ua=1300,Hl=1600,l7e=460322;function xh(e,t,r,o){return o+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function j5(e,t,r){let o=Math.floor((30*(r-t)+10646)/10631),i=Math.min(12,Math.ceil((r-(29+xh(t,o,1,1)))/29.5)+1),s=r-xh(t,o,i,1)+1;return new Lt(e,o,i,s)}function k5(e){return(14+11*e)%30<11}class tC{fromJulianDay(t){return j5(this,Ch,t)}toJulianDay(t){return xh(Ch,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&k5(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return k5(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class c7e extends tC{fromJulianDay(t){return j5(this,I5,t)}toJulianDay(t){return xh(I5,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const u7e="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let rC,Xl;function wh(e){return l7e+Xl[e-ua]}function qd(e,t){let r=e-ua,o=1<<11-(t-1);return rC[r]&o?30:29}function N5(e,t){let r=wh(e);for(let o=1;o<t;o++)r+=qd(e,o);return r}function L5(e){return Xl[e+1-ua]-Xl[e-ua]}class d7e extends tC{fromJulianDay(t){let r=t-Ch,o=wh(ua),i=wh(Hl);if(r<o||r>i)return super.fromJulianDay(t);{let s=ua-1,l=1,c=1;for(;c>0;){s++,c=r-wh(s)+1;let u=L5(s);if(c===u){l=12;break}else if(c<u){let d=qd(s,l);for(l=1;c>d;)c-=d,l++,d=qd(s,l);break}}return new Lt(this,s,l,r-N5(s,l)+1)}}toJulianDay(t){return t.year<ua||t.year>Hl?super.toJulianDay(t):Ch+N5(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ua||t.year>Hl?super.getDaysInMonth(t):qd(t.year,t.month)}getDaysInYear(t){return t.year<ua||t.year>Hl?super.getDaysInYear(t):L5(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",rC||(rC=new Uint16Array(Uint8Array.from(atob(u7e),t=>t.charCodeAt(0)).buffer)),!Xl){Xl=new Uint32Array(Hl-ua+1);let t=0;for(let r=ua;r<=Hl;r++){Xl[r-ua]=t;for(let o=1;o<=12;o++)t+=qd(r,o)}}}}const O5=347997,B5=1080,M5=24*B5,f7e=29,p7e=12*B5+793,m7e=f7e*M5+p7e;function rs(e){return Zl(e*7+1,19)<7}function Ah(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,o=t*29+Math.floor(r/25920);return Zl(3*(o+1),7)<3&&(o+=1),o}function g7e(e){let t=Ah(e-1),r=Ah(e);return Ah(e+1)-r===356?2:r-t===382?1:0}function Ud(e){return Ah(e)+g7e(e)}function F5(e){return Ud(e+1)-Ud(e)}function h7e(e){let t=F5(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Eh(e,t){if(t>=6&&!rs(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=h7e(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?rs(e)?30:0:30}class b7e{fromJulianDay(t){let r=t-O5,o=r*M5/m7e,i=Math.floor((19*o+234)/235)+1,s=Ud(i),l=Math.floor(r-s);for(;l<1;)i--,s=Ud(i),l=Math.floor(r-s);let c=1,u=0;for(;u<l;)u+=Eh(i,c),c++;c--,u-=Eh(i,c);let d=l-u;return new Lt(this,i,c,d)}toJulianDay(t){let r=Ud(t.year);for(let o=1;o<t.month;o++)r+=Eh(t.year,o);return r+t.day+O5}getDaysInMonth(t){return Eh(t.year,t.month)}getMonthsInYear(t){return rs(t.year)?13:12}getDaysInYear(t){return F5(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(rs(r.year)&&!rs(t.year)&&r.month>6?t.month--:!rs(r.year)&&rs(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const aC=1723856,R5=1824665,nC=5500;function Th(e,t,r,o){return e+365*t+Math.floor(t/4)+30*(r-1)+o-1}function oC(e,t){let r=Math.floor(4*(t-e)/1461),o=1+Math.floor((t-Th(e,r,1,1))/30),i=t+1-Th(e,r,o,1);return[r,o,i]}function V5(e){return Math.floor(e%4/3)}function G5(e,t){return t%13!==0?30:V5(e)+5}class iC{fromJulianDay(t){let[r,o,i]=oC(aC,t),s="AM";return r<=0&&(s="AA",r+=nC),new Lt(this,s,r,o,i)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=nC),Th(aC,r,t.month,t.day)}getDaysInMonth(t){return G5(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+V5(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class y7e extends iC{fromJulianDay(t){let[r,o,i]=oC(aC,t);return r+=nC,new Lt(this,"AA",r,o,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class v7e extends iC{fromJulianDay(t){let[r,o,i]=oC(R5,t),s="CE";return r<=0&&(s="BCE",r=1-r),new Lt(this,s,r,o,i)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),Th(R5,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),G5(r,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function z5(e){switch(e){case"buddhist":return new n7e;case"ethiopic":return new iC;case"ethioaa":return new y7e;case"coptic":return new v7e;case"hebrew":return new b7e;case"indian":return new s7e;case"islamic-civil":return new tC;case"islamic-tbla":return new c7e;case"islamic-umalqura":return new d7e;case"japanese":return new a7e;case"persian":return new i7e;case"roc":return new o7e;case"gregory":default:return new qr}}let sC=new Map;class so{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(r)}`}formatRangeToParts(t,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let o=this.formatter.formatToParts(t),i=this.formatter.formatToParts(r);return[...o.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return x7e()&&(this.resolvedHourCycle||(this.resolvedHourCycle=w7e(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,r={}){this.formatter=Z5(t,r),this.options=r}}const $7e={true:{ja:"h11"},false:{}};function Z5(e,t={}){if(typeof t.hour12=="boolean"&&C7e()){t={...t};let i=$7e[String(t.hour12)][e.split("-")[0]],s=t.hour12?"h12":"h23";t.hourCycle=i??s,delete t.hour12}let r=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(sC.has(r))return sC.get(r);let o=new Intl.DateTimeFormat(e,t);return sC.set(r,o),o}let lC=null;function C7e(){return lC==null&&(lC=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),lC}let cC=null;function x7e(){return cC==null&&(cC=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),cC}function w7e(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let r=Z5(e,{...t,timeZone:void 0}),o=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(o===0&&i===23)return"h23";if(o===24&&i===23)return"h24";if(o===0&&i===11)return"h11";if(o===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function hn(e){e=bL(e??{},A7e);let{locale:t}=kr();return g.useMemo(()=>new so(t,e),[t,e])}function A7e(e,t){if(e===t)return!0;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let i of r)if(t[i]!==e[i])return!1;return!0}let uC=new Map,dC=!1;try{dC=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let _h=!1;try{_h=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const W5={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Dh{format(t){let r="";if(!dC&&this.options.signDisplay!=null?r=T7e(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!_h){var o;let{unit:i,unitDisplay:s="short",locale:l}=this.resolvedOptions();if(!i)return r;let c=(o=W5[i])===null||o===void 0?void 0:o[s];r+=c[l]||c.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let o=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(r);return[...o.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!dC&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!_h&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=E7e(t,r),this.options=r}}function E7e(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!_h){var o;let{unit:l,unitDisplay:c="short"}=t;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((o=W5[l])===null||o===void 0)&&o[c]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((l,c)=>l[0]<c[0]?-1:1).join():"");if(uC.has(i))return uC.get(i);let s=new Intl.NumberFormat(e,t);return uC.set(i,s),s}function T7e(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let o=!1;if(t==="always"?o=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):o=r>0),o){let i=e.format(-r),s=e.format(r),l=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(l,"+").replace("!!!",s)}else return e.format(r)}}const _7e=new RegExp("^.*\\(.*\\).*$"),D7e=["latn","arab","hanidec","deva","beng"];class fC{parse(t){return pC(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,o){return pC(this.locale,this.options,t).isValidPartialNumber(t,r,o)}getNumberingSystem(t){return pC(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const q5=new Map;function pC(e,t,r){let o=U5(e,t);if(!e.includes("-nu-")&&!o.isValidPartialNumber(r)){for(let i of D7e)if(i!==o.options.numberingSystem){let s=U5(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(r))return s}}return o}function U5(e,t){let r=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),o=q5.get(r);return o||(o=new S7e(e,t),q5.set(r,o)),o}class S7e{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=Sh(r,this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let l=r.indexOf("-");r=r.replace("-","");let c=r.indexOf(".");c===-1&&(c=r.length),r=r.replace(".",""),c-2===0?r=`0.${r}`:c-2===-1?r=`0.0${r}`:c-2===-2?r="0.00":r=`${r.slice(0,c-2)}.${r.slice(c-2)}`,l>-1&&(r=`-${r}`)}let o=r?+r:NaN;if(isNaN(o))return NaN;if(this.options.style==="percent"){var i,s;let l={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new fC(this.locale,l).parse(new Dh(this.locale,l).format(o))}return this.options.currencySign==="accounting"&&_7e.test(t)&&(o=-1*o),o}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Sh(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Sh(t,"."," ")),t}isValidPartialNumber(t,r=-1/0,o=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&o>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Sh(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=I7e(t,this.formatter,this.options,r);var o,i;this.options.style==="percent"&&(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const H5=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),P7e=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function I7e(e,t,r,o){var i,s,l,c;let u=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=u.formatToParts(-10000.111),f=u.formatToParts(10000.111),p=P7e.map(O=>u.formatToParts(O));var m;let b=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",h=(s=f.find(O=>O.type==="plusSign"))===null||s===void 0?void 0:s.value;!h&&((o==null?void 0:o.signDisplay)==="exceptZero"||(o==null?void 0:o.signDisplay)==="always")&&(h="+");let v=(l=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||l===void 0?void 0:l.value,$=(c=d.find(O=>O.type==="group"))===null||c===void 0?void 0:c.value,C=d.filter(O=>!H5.has(O.type)).map(O=>X5(O.value)),T=p.flatMap(O=>O.filter(j=>!H5.has(j.type)).map(j=>X5(j.value))),x=[...new Set([...C,...T])].sort((O,j)=>j.length-O.length),w=x.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),S=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),P=new Map(S.map((O,j)=>[O,j])),A=new RegExp(`[${S.join("")}]`,"g");return{minusSign:b,plusSign:h,decimal:v,group:$,literals:w,numeral:A,index:O=>String(P.get(O))}}function Sh(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function X5(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y5(e={}){let{locale:t}=kr();return g.useMemo(()=>new Dh(t,e),[t,e])}let mC=new Map;function j7e(e){let{locale:t}=kr(),r=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(mC.has(r))return mC.get(r);let o=new Intl.Collator(t,e);return mC.set(r,o),o}function k7e(e){let t=j7e({usage:"search",...e}),r=g.useCallback((s,l)=>l.length===0?!0:(s=s.normalize("NFC"),l=l.normalize("NFC"),t.compare(s.slice(0,l.length),l)===0),[t]),o=g.useCallback((s,l)=>l.length===0?!0:(s=s.normalize("NFC"),l=l.normalize("NFC"),t.compare(s.slice(-l.length),l)===0),[t]),i=g.useCallback((s,l)=>{if(l.length===0)return!0;s=s.normalize("NFC"),l=l.normalize("NFC");let c=0,u=l.length;for(;c+u<=s.length;c++){let d=s.slice(c,c+u);if(t.compare(l,d)===0)return!0}return!1},[t]);return g.useMemo(()=>({startsWith:r,endsWith:o,contains:i}),[r,o,i])}function N7e(e,t){let{elementType:r="button",isDisabled:o,onPress:i,onPressStart:s,onPressEnd:l,onPressUp:c,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:p,href:m,target:b,rel:h,type:y="button"}=e,v;r==="button"?v={type:y,disabled:o}:v={role:"button",href:r==="a"&&!o?m:void 0,target:r==="a"?b:void 0,type:r==="input"?y:void 0,disabled:r==="input"?o:void 0,"aria-disabled":!o||r==="input"?void 0:o,rel:r==="a"?h:void 0};let{pressProps:$,isPressed:C}=I4({onPressStart:s,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:c,isDisabled:o,preventFocusOnPress:d,ref:t}),{focusableProps:T}=VL(e,t);f&&(T.tabIndex=o?-1:T.tabIndex);let x=ct(T,$,Yt(e,{labelable:!0}));return{isPressed:C,buttonProps:ct(v,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],onClick:w=>{p&&(p(w),console.warn("onClick is deprecated, please use onPress"))}})}}function L7e(e){const t=Wr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:o}=e.style,i=r!=="none"&&o!=="hidden"&&o!=="collapse";if(i){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:l,visibility:c}=s(e);i=l!=="none"&&c!=="hidden"&&c!=="collapse"}return i}function O7e(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function J5(e,t){return e.nodeName!=="#comment"&&L7e(e)&&O7e(e,t)&&(!e.parentElement||J5(e.parentElement,e))}function K5(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Hd(e,t=!1){if(e!=null&&!t)try{dh(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Yl(e,t,r){let o=t!=null&&t.tabbable?zFe:yL,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=Wt(i),l=wFe(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(c){var u;return!(t==null||(u=t.from)===null||u===void 0)&&u.contains(c)?NodeFilter.FILTER_REJECT:o(c)&&J5(c)&&(!r||K5(c,r))&&(!(t!=null&&t.accept)||t.accept(c))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(l.currentNode=t.from),l}function gC(e,t={}){return{focusNext(r={}){let o=e.current;if(!o)return null;let{from:i,tabbable:s=t.tabbable,wrap:l=t.wrap,accept:c=t.accept}=r,u=i||Ui(Wt(o)),d=Yl(o,{tabbable:s,accept:c});o.contains(u)&&(d.currentNode=u);let f=d.nextNode();return!f&&l&&(d.currentNode=o,f=d.nextNode()),f&&Hd(f,!0),f},focusPrevious(r=t){let o=e.current;if(!o)return null;let{from:i,tabbable:s=t.tabbable,wrap:l=t.wrap,accept:c=t.accept}=r,u=i||Ui(Wt(o)),d=Yl(o,{tabbable:s,accept:c});if(o.contains(u))d.currentNode=u;else{let p=hC(d);return p&&Hd(p,!0),p??null}let f=d.previousNode();if(!f&&l){d.currentNode=o;let p=hC(d);if(!p)return null;f=p}return f&&Hd(f,!0),f??null},focusFirst(r=t){let o=e.current;if(!o)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=r,c=Yl(o,{tabbable:i,accept:s}).nextNode();return c&&Hd(c,!0),c},focusLast(r=t){let o=e.current;if(!o)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=r,l=Yl(o,{tabbable:i,accept:s}),c=hC(l);return c&&Hd(c,!0),c??null}}}function hC(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}class bC{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let i=this.fastMap.get(r??null);if(!i)return;let s=new Q5({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),o&&(s.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&K5(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let i=r.children;o&&(o.removeChild(r),i.size>0&&i.forEach(s=>o&&o.addChild(s))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new bC;var o;for(let i of this.traverse())r.addTreeNode(i.scopeRef,(o=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&o!==void 0?o:null,i.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Q5({scopeRef:null}),this.fastMap.set(null,this.root)}}class Q5{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new bC;function Jl(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,i=g.useRef({isFocused:!1,isFocusVisible:t||ML()}),[s,l]=g.useState(!1),[c,u]=g.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=g.useCallback(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),f=g.useCallback(b=>{i.current.isFocused=b,l(b),d()},[d]);sRe(b=>{i.current.isFocusVisible=b,d()},[],{isTextInput:r});let{focusProps:p}=B4({isDisabled:o,onFocusChange:f}),{focusWithinProps:m}=Fd({isDisabled:!o,onFocusWithinChange:f});return{isFocused:s,isFocusVisible:c,focusProps:o?m:p}}var eO={};eO={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var tO={};tO={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var rO={};rO={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var aO={};aO={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var nO={};nO={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var oO={};oO={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var iO={};iO={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var sO={};sO={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var lO={};lO={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var cO={};cO={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var uO={};uO={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var dO={};dO={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var fO={};fO={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var pO={};pO={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var mO={};mO={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var gO={};gO={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var hO={};hO={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var bO={};bO={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var yO={};yO={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var vO={};vO={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var $O={};$O={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var CO={};CO={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var xO={};xO={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var wO={};wO={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var AO={};AO={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var EO={};EO={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var TO={};TO={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var _O={};_O={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var DO={};DO={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var SO={};SO={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var PO={};PO={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var IO={};IO={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var jO={};jO={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var kO={};kO={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Xd={};Xd={"ar-AE":eO,"bg-BG":tO,"cs-CZ":rO,"da-DK":aO,"de-DE":nO,"el-GR":oO,"en-US":iO,"es-ES":sO,"et-EE":lO,"fi-FI":cO,"fr-FR":uO,"he-IL":dO,"hr-HR":fO,"hu-HU":pO,"it-IT":mO,"ja-JP":gO,"ko-KR":hO,"lt-LT":bO,"lv-LV":yO,"nb-NO":vO,"nl-NL":$O,"pl-PL":CO,"pt-BR":xO,"pt-PT":wO,"ro-RO":AO,"ru-RU":EO,"sk-SK":TO,"sl-SI":_O,"sr-SP":DO,"sv-SE":SO,"tr-TR":PO,"uk-UA":IO,"zh-CN":jO,"zh-TW":kO};function NO(e){return e&&e.__esModule?e.default:e}const yC=new WeakMap;function Yd(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function B7e(e){let t=ti(NO(Xd),"@react-aria/calendar"),r,o;var i;"highlightedRange"in e?{start:r,end:o}=e.highlightedRange||{}:r=o=(i=e.value)!==null&&i!==void 0?i:void 0;let s=hn({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Yd(r)||Yd(o),timeZone:e.timeZone}),l="anchorDate"in e?e.anchorDate:null;return g.useMemo(()=>{if(!l&&r&&o)if(Mt(r,o)){let c=s.format(r.toDate(e.timeZone));return t.format("selectedDateDescription",{date:c})}else{let c=$C(s,t,r,o,e.timeZone);return t.format("selectedRangeDescription",{dateRange:c})}return""},[r,o,l,e.timeZone,t,s])}function vC(e,t,r,o){let i=ti(NO(Xd),"@react-aria/calendar"),s=Yd(e)||Yd(t),l=hn({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:r}),c=hn({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:r});return g.useMemo(()=>{if(Mt(e,es(e))){if(Mt(t,mh(e)))return l.format(e.toDate(r));if(Mt(t,mh(t)))return o?$C(l,i,e,t,r):l.formatRange(e.toDate(r),t.toDate(r))}return o?$C(c,i,e,t,r):c.formatRange(e.toDate(r),t.toDate(r))},[e,t,l,c,i,r,o])}function $C(e,t,r,o,i){let s=e.formatRangeToParts(r.toDate(i),o.toDate(i)),l=-1;for(let d=0;d<s.length;d++){let f=s[d];if(f.source==="shared"&&f.type==="literal")l=d;else if(f.source==="endRange")break}let c="",u="";for(let d=0;d<s.length;d++)d<l?c+=s[d].value:d>l&&(u+=s[d].value);return t.format("dateRange",{startDate:c,endDate:u})}const LO=7e3;let da=null;function Jd(e,t="assertive",r=LO){da?da.announce(e,t,r):(da=new F7e,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?da.announce(e,t,r):setTimeout(()=>{da!=null&&da.isAttached()&&(da==null||da.announce(e,t,r))},100))}function M7e(e){da&&da.clear(e)}class F7e{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",o=LO){var i,s;if(!this.node)return;let l=document.createElement("div");typeof t=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",t["aria-labelledby"])):l.textContent=t,r==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(s=this.politeLog)===null||s===void 0||s.appendChild(l),t!==""&&setTimeout(()=>{l.remove()},o)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function R7e(e){return e&&e.__esModule?e.default:e}function V7e(e,t){let r=ti(R7e(Xd),"@react-aria/calendar"),o=Yt(e),i=vC(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=vC(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);fL(()=>{t.isFocused||Jd(s)},[s]);let l=B7e(t);fL(()=>{l&&Jd(l,"polite",4e3)},[l]);let c=Xg([!!e.errorMessage,e.isInvalid,e.validationState]);yC.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:c,selectedDateDescription:l});let[u,d]=g.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&u&&(d(!1),t.setFocused(!0));let[p,m]=g.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&p&&(m(!1),t.setFocused(!0));let h=th({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:ct(o,h,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":r.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:b,onFocusChange:m},errorMessageProps:{id:c},title:i}}function G7e(e,t){return V7e(e,t)}function z7e(e,t){let{startDate:r=t.visibleRange.start,endDate:o=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=kr(),l=h=>{switch(h.key){case"Enter":case" ":h.preventDefault(),t.selectFocusedDate();break;case"PageUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousSection(h.shiftKey);break;case"PageDown":h.preventDefault(),h.stopPropagation(),t.focusNextSection(h.shiftKey);break;case"End":h.preventDefault(),h.stopPropagation(),t.focusSectionEnd();break;case"Home":h.preventDefault(),h.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":h.preventDefault(),h.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":h.preventDefault(),h.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":h.preventDefault(),h.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(h.preventDefault(),t.setAnchorDate(null));break}},c=vC(r,o,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:d}=yC.get(t),f=th({"aria-label":[u,c].filter(Boolean).join(", "),"aria-labelledby":d}),p=hn({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:m}=kr(),b=g.useMemo(()=>{let h=zd(G4(t.timeZone),m,i);return[...new Array(7).keys()].map(y=>{let $=h.add({days:y}).toDate(t.timeZone);return p.format($)})},[m,t.timeZone,p,i]);return{gridProps:ct(f,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:l,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b}}function Z7e(e){return e&&e.__esModule?e.default:e}function W7e(e,t,r){let{date:o,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:l}=yC.get(t),c=ti(Z7e(Xd),"@react-aria/calendar"),u=hn({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Yd(o),timeZone:t.timeZone}),d=t.isSelected(o),f=t.isCellFocused(o);i=i||t.isCellDisabled(o);let p=t.isCellUnavailable(o),m=!i&&!p,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&o.compare(t.highlightedRange.start)>=0&&o.compare(t.highlightedRange.end)<=0:t.value&&Mt(t.value,o));b&&(d=!0),o=bL(o,DRe);let h=g.useMemo(()=>o.toDate(t.timeZone),[o,t.timeZone]),y=SRe(o,t.timeZone),v=g.useMemo(()=>{let j="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Mt(o,t.value.start)||Mt(o,t.value.end))&&(j=l+", "),j+=u.format(h),y?j=c.format(d?"todayDateSelected":"todayDate",{date:j}):d&&(j=c.format("dateSelected",{date:j})),t.minValue&&Mt(o,t.minValue)?j+=", "+c.format("minimumDate"):t.maxValue&&Mt(o,t.maxValue)&&(j+=", "+c.format("maximumDate")),j},[u,h,c,d,y,o,t,l]),$="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?$=c.format("finishRangeSelectionPrompt"):$=c.format("startRangeSelectionPrompt"));let C=w4($),T=g.useRef(!1),x=g.useRef(!1),w=g.useRef(void 0),{pressProps:S,isPressed:P}=I4({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(j){if(t.isReadOnly){t.setFocusedDate(o);return}if("highlightedRange"in t&&!t.anchorDate&&(j.pointerType==="mouse"||j.pointerType==="touch")){if(t.highlightedRange&&!b){if(Mt(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setDragging(!0),x.current=!0;return}else if(Mt(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setDragging(!0),x.current=!0;return}}let V=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(o),t.setFocusedDate(o),T.current=!0};j.pointerType==="touch"?w.current=setTimeout(V,200):V()}},onPressEnd(){x.current=!1,T.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(o),t.setFocusedDate(o))},onPressUp(j){if(!t.isReadOnly&&("anchorDate"in t&&w.current&&(t.selectDate(o),t.setFocusedDate(o)),"anchorDate"in t))if(x.current)t.setAnchorDate(o);else if(t.anchorDate&&!T.current)t.selectDate(o),t.setFocusedDate(o);else if(j.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(o);let V=o.add({days:1});t.isInvalid(V)&&(V=o.subtract({days:1})),t.isInvalid(V)||t.setFocusedDate(V)}else j.pointerType==="virtual"&&(t.selectDate(o),t.setFocusedDate(o))}}),A;i||(A=Mt(o,t.focusedDate)?0:-1),g.useEffect(()=>{f&&r.current&&(Hi(r.current),FL()!=="pointer"&&document.activeElement===r.current&&hL(r.current,{containingElement:mL(r.current)}))},[f,r]);let I=hn({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),O=g.useMemo(()=>I.formatToParts(h).find(j=>j.type==="day").value,[I,h]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:ct(S,{onFocus(){i||t.setFocusedDate(o)},tabIndex:A,role:"button","aria-disabled":!m||void 0,"aria-label":v,"aria-invalid":b||void 0,"aria-describedby":[b?s:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(j){"highlightDate"in t&&(j.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(o)},onPointerDown(j){"releasePointerCapture"in j.target&&j.target.releasePointerCapture(j.pointerId)},onContextMenu(j){j.preventDefault()}}),isPressed:P,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:p,isOutsideVisibleRange:o.compare(t.visibleRange.start)<0||o.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:O}}const OO={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},BO={...OO,customError:!0,valid:!1},Kd={isInvalid:!1,validationDetails:OO,validationErrors:[]},q7e=g.createContext({}),Ph="__formValidationState"+Date.now();function Ih(e){if(e[Ph]){let{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:i,commitValidation:s}=e[Ph];return{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:i,commitValidation:s}}return U7e(e)}function U7e(e){let{isInvalid:t,validationState:r,name:o,value:i,builtinValidation:s,validate:l,validationBehavior:c="aria"}=e;r&&(t||(t=r==="invalid"));let u=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:BO}:null,d=g.useMemo(()=>{if(!l||i==null)return null;let O=H7e(l,i);return MO(O)},[l,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let f=g.useContext(q7e),p=g.useMemo(()=>o?Array.isArray(o)?o.flatMap(O=>CC(f[O])):CC(f[o]):[],[f,o]),[m,b]=g.useState(f),[h,y]=g.useState(!1);f!==m&&(b(f),y(!1));let v=g.useMemo(()=>MO(h?[]:p),[h,p]),$=g.useRef(Kd),[C,T]=g.useState(Kd),x=g.useRef(Kd),w=()=>{if(!S)return;P(!1);let O=d||s||$.current;xC(O,x.current)||(x.current=O,T(O))},[S,P]=g.useState(!1);return g.useEffect(w),{realtimeValidation:u||v||d||s||Kd,displayValidation:c==="native"?u||v||C:u||v||d||s||C,updateValidation(O){c==="aria"&&!xC(C,O)?T(O):$.current=O},resetValidation(){let O=Kd;xC(O,x.current)||(x.current=O,T(O)),c==="native"&&P(!1),y(!0)},commitValidation(){c==="native"&&P(!0),y(!0)}}}function CC(e){return e?Array.isArray(e)?e:[e]:[]}function H7e(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return CC(r)}return[]}function MO(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:BO}:null}function xC(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,o)=>r===t.validationErrors[o])&&Object.entries(e.validationDetails).every(([r,o])=>t.validationDetails[r]===o)}function FO(e,t,r){let{validationBehavior:o,focus:i}=e;La(()=>{if(o==="native"&&(r!=null&&r.current)&&!r.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Y7e(r.current))}});let s=ir(()=>{t.resetValidation()}),l=ir(u=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=r==null||(d=r.current)===null||d===void 0?void 0:d.form;if(!u.defaultPrevented&&r&&f&&J7e(f)===r.current){var p;i?i():(p=r.current)===null||p===void 0||p.focus(),nRe("keyboard")}u.preventDefault()}),c=ir(()=>{t.commitValidation()});g.useEffect(()=>{let u=r==null?void 0:r.current;if(!u)return;let d=u.form;return u.addEventListener("invalid",l),u.addEventListener("change",c),d==null||d.addEventListener("reset",s),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",c),d==null||d.removeEventListener("reset",s)}},[r,l,c,s,o])}function X7e(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Y7e(e){return{isInvalid:!e.validity.valid,validationDetails:X7e(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function J7e(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function K7e(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":i,labelElementType:s="label"}=e;t=Zr(t);let l=Zr(),c={};r?(o=o?`${l} ${o}`:l,c={id:l,htmlFor:s==="label"?t:void 0}):!o&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=th({id:t,"aria-label":i,"aria-labelledby":o});return{labelProps:c,fieldProps:u}}function wC(e){let{description:t,errorMessage:r,isInvalid:o,validationState:i}=e,{labelProps:s,fieldProps:l}=K7e(e),c=Xg([!!t,!!r,o,i]),u=Xg([!!t,!!r,o,i]);return l=ct(l,{"aria-describedby":[c,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:l,descriptionProps:{id:c},errorMessageProps:{id:u}}}function Q7e(e){let{minValue:t,maxValue:r,step:o,formatOptions:i,value:s,defaultValue:l=NaN,onChange:c,locale:u,isDisabled:d,isReadOnly:f}=e;s===null&&(s=NaN),s!==void 0&&!isNaN(s)&&(o!==void 0&&!isNaN(o)?s=to(s,t,r,o):s=_4(s,t,r)),isNaN(l)||(o!==void 0&&!isNaN(o)?l=to(l,t,r,o):l=_4(l,t,r));let[p,m]=Xi(s,isNaN(l)?NaN:l,c),[b,h]=g.useState(()=>isNaN(p)?"":new Dh(u,i).format(p)),y=g.useMemo(()=>new fC(u,i),[u,i]),v=g.useMemo(()=>y.getNumberingSystem(b),[y,b]),$=g.useMemo(()=>new Dh(u,{...i,numberingSystem:v}),[u,i,v]),C=g.useMemo(()=>$.resolvedOptions(),[$]),T=g.useCallback(B=>isNaN(B)||B===null?"":$.format(B),[$]),x=Ih({...e,value:p}),w=o!==void 0&&!isNaN(o)?o:1;C.style==="percent"&&(o===void 0||isNaN(o))&&(w=.01);let[S,P]=g.useState(p),[A,I]=g.useState(u),[O,j]=g.useState(i);(!Object.is(p,S)||u!==A||i!==O)&&(h(T(p)),P(p),I(u),j(i));let V=g.useMemo(()=>y.parse(b),[y,b]),k=()=>{if(!b.length){m(NaN),h(s===void 0?"":T(p));return}if(isNaN(V)){h(T(p));return}let B;o===void 0||isNaN(o)?B=_4(V,t,r):B=to(V,t,r,o),B=y.parse(T(B)),m(B),h(T(s===void 0?B:p))},Z=(B,L=0)=>{let E=V;if(isNaN(E)){let _=isNaN(L)?0:L;return to(_,t,r,w)}else{let _=to(E,t,r,w);return B==="+"&&_>E||B==="-"&&_<E?_:to(AC(B,E,w),t,r,w)}},U=()=>{let B=Z("+",t);B===p&&h(T(B)),m(B),x.commitValidation()},X=()=>{let B=Z("-",r);B===p&&h(T(B)),m(B),x.commitValidation()},ee=()=>{r!=null&&(m(to(r,t,r,w)),x.commitValidation())},te=()=>{t!=null&&(m(t),x.commitValidation())},de=g.useMemo(()=>!d&&!f&&(isNaN(V)||r===void 0||isNaN(r)||to(V,t,r,w)>V||AC("+",V,w)<=r),[d,f,t,r,w,V]),G=g.useMemo(()=>!d&&!f&&(isNaN(V)||t===void 0||isNaN(t)||to(V,t,r,w)<V||AC("-",V,w)>=t),[d,f,t,r,w,V]);return{...x,validate:B=>y.isValidPartialNumber(B,t,r),increment:U,incrementToMax:ee,decrement:X,decrementToMin:te,canIncrement:de,canDecrement:G,minValue:t,maxValue:r,numberValue:V,setNumberValue:m,setInputValue:h,inputValue:b,commit:k}}function AC(e,t,r){let o=e==="+"?t+r:t-r;if(t%1!==0||r%1!==0){const i=t.toString().split("."),s=r.toString().split("."),l=i[1]&&i[1].length||0,c=s[1]&&s[1].length||0,u=Math.pow(10,Math.max(l,c));t=Math.round(t*u),r=Math.round(r*u),o=e==="+"?t+r:t-r,o/=u}return o}const RO={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function eVe(e={}){let{style:t,isFocusable:r}=e,[o,i]=g.useState(!1),{focusWithinProps:s}=Fd({isDisabled:!r,onFocusWithinChange:c=>i(c)}),l=g.useMemo(()=>o?t:t?{...RO,...t}:RO,[o]);return{visuallyHiddenProps:{...s,style:l}}}function VO(e){let{children:t,elementType:r="div",isFocusable:o,style:i,...s}=e,{visuallyHiddenProps:l}=eVe(e);return g.createElement(r,ct(s,l),t)}function tVe(e,t){let{inputElementType:r="input",isDisabled:o=!1,isRequired:i=!1,isReadOnly:s=!1,type:l="text",validationBehavior:c="aria"}=e,[u,d]=Xi(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=VL(e,t),p=Ih({...e,value:u}),{isInvalid:m,validationErrors:b,validationDetails:h}=p.displayValidation,{labelProps:y,fieldProps:v,descriptionProps:$,errorMessageProps:C}=wC({...e,isInvalid:m,errorMessage:e.errorMessage||b}),T=Yt(e,{labelable:!0});const x={type:l,pattern:e.pattern};return E4(t,u,d),FO(e,p,t),g.useEffect(()=>{if(t.current instanceof Wr(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:y,inputProps:ct(T,r==="input"?x:void 0,{disabled:o,readOnly:s,required:i&&c==="native","aria-required":i&&c==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:u,onChange:w=>d(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(g.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...v}),descriptionProps:$,errorMessageProps:C,isInvalid:m,validationErrors:b,validationDetails:h}}function GO(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function rVe(e,t,r){let o=ir(p=>{let m=r.current;if(!m)return;let b=null;switch(p.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":b=m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentForward":b=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd+1):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentBackward":b=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart-1)+m.value.slice(m.selectionStart):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":b=m.value.slice(m.selectionStart);break;default:p.data!=null&&(b=m.value.slice(0,m.selectionStart)+p.data+m.value.slice(m.selectionEnd));break}(b==null||!t.validate(b))&&p.preventDefault()});g.useEffect(()=>{if(!GO()||!r.current)return;let p=r.current;return p.addEventListener("beforeinput",o,!1),()=>{p.removeEventListener("beforeinput",o,!1)}},[r,o]);let i=GO()?null:p=>{let m=p.target.value.slice(0,p.target.selectionStart)+p.data+p.target.value.slice(p.target.selectionEnd);t.validate(m)||p.preventDefault()},{labelProps:s,inputProps:l,descriptionProps:c,errorMessageProps:u,...d}=tVe(e,r),f=g.useRef(null);return{inputProps:ct(l,{onBeforeInput:i,onCompositionStart(){let{value:p,selectionStart:m,selectionEnd:b}=r.current;f.current={value:p,selectionStart:m,selectionEnd:b}},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:p,selectionStart:m,selectionEnd:b}=f.current;r.current.value=p,r.current.setSelectionRange(m,b),t.setInputValue(p)}}}),labelProps:s,descriptionProps:c,errorMessageProps:u,...d}}var zO={};zO={Empty:"فارغ"};var ZO={};ZO={Empty:"Изпразни"};var WO={};WO={Empty:"Prázdné"};var qO={};qO={Empty:"Tom"};var UO={};UO={Empty:"Leer"};var HO={};HO={Empty:"Άδειο"};var XO={};XO={Empty:"Empty"};var YO={};YO={Empty:"Vacío"};var JO={};JO={Empty:"Tühjenda"};var KO={};KO={Empty:"Tyhjä"};var QO={};QO={Empty:"Vide"};var e9={};e9={Empty:"ריק"};var t9={};t9={Empty:"Prazno"};var r9={};r9={Empty:"Üres"};var a9={};a9={Empty:"Vuoto"};var n9={};n9={Empty:"空"};var o9={};o9={Empty:"비어 있음"};var i9={};i9={Empty:"Tuščias"};var s9={};s9={Empty:"Tukšs"};var l9={};l9={Empty:"Tom"};var c9={};c9={Empty:"Leeg"};var u9={};u9={Empty:"Pusty"};var d9={};d9={Empty:"Vazio"};var f9={};f9={Empty:"Vazio"};var p9={};p9={Empty:"Gol"};var m9={};m9={Empty:"Не заполнено"};var g9={};g9={Empty:"Prázdne"};var h9={};h9={Empty:"Prazen"};var b9={};b9={Empty:"Prazno"};var y9={};y9={Empty:"Tomt"};var v9={};v9={Empty:"Boş"};var $9={};$9={Empty:"Пусто"};var C9={};C9={Empty:"空"};var x9={};x9={Empty:"空白"};var w9={};w9={"ar-AE":zO,"bg-BG":ZO,"cs-CZ":WO,"da-DK":qO,"de-DE":UO,"el-GR":HO,"en-US":XO,"es-ES":YO,"et-EE":JO,"fi-FI":KO,"fr-FR":QO,"he-IL":e9,"hr-HR":t9,"hu-HU":r9,"it-IT":a9,"ja-JP":n9,"ko-KR":o9,"lt-LT":i9,"lv-LV":s9,"nb-NO":l9,"nl-NL":c9,"pl-PL":u9,"pt-BR":d9,"pt-PT":f9,"ro-RO":p9,"ru-RU":m9,"sk-SK":g9,"sl-SI":h9,"sr-SP":b9,"sv-SE":y9,"tr-TR":v9,"uk-UA":$9,"zh-CN":C9,"zh-TW":x9};function aVe(e){return e&&e.__esModule?e.default:e}function A9(e){const t=g.useRef(void 0);let{value:r,textValue:o,minValue:i,maxValue:s,isDisabled:l,isReadOnly:c,isRequired:u,onIncrement:d,onIncrementPage:f,onDecrement:p,onDecrementPage:m,onDecrementToMin:b,onIncrementToMax:h}=e;const y=ti(aVe(w9),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);g.useEffect(()=>()=>v(),[]);let $=j=>{if(!(j.ctrlKey||j.metaKey||j.shiftKey||j.altKey||c))switch(j.key){case"PageUp":if(f){j.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(j.preventDefault(),d==null||d());break;case"PageDown":if(m){j.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":p&&(j.preventDefault(),p==null||p());break;case"Home":b&&(j.preventDefault(),b==null||b());break;case"End":h&&(j.preventDefault(),h==null||h());break}},C=g.useRef(!1),T=()=>{C.current=!0},x=()=>{C.current=!1},w=o===""?y.format("Empty"):(o||`${r}`).replace("-","−");g.useEffect(()=>{C.current&&(M7e("assertive"),Jd(w,"assertive"))},[w]);const S=ir(j=>{v(),d==null||d(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||r===void 0||isNaN(r)||r<s)&&S(60)},j)}),P=ir(j=>{v(),p==null||p(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||r===void 0||isNaN(r)||r>i)&&P(60)},j)});let A=j=>{j.preventDefault()},{addGlobalListener:I,removeAllGlobalListeners:O}=eh();return{spinButtonProps:{role:"spinbutton","aria-valuenow":r!==void 0&&!isNaN(r)?r:void 0,"aria-valuetext":w,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":l||void 0,"aria-readonly":c||void 0,"aria-required":u||void 0,onKeyDown:$,onFocus:T,onBlur:x},incrementButtonProps:{onPressStart:()=>{S(400),I(window,"contextmenu",A)},onPressEnd:()=>{v(),O()},onFocus:T,onBlur:x},decrementButtonProps:{onPressStart:()=>{P(400),I(window,"contextmenu",A)},onPressEnd:()=>{v(),O()},onFocus:T,onBlur:x}}}var E9={};E9={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var T9={};T9={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var _9={};_9={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var D9={};D9={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var S9={};S9={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var P9={};P9={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var I9={};I9={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var j9={};j9={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var k9={};k9={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var N9={};N9={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var L9={};L9={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var O9={};O9={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var B9={};B9={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var M9={};M9={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var F9={};F9={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var R9={};R9={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var V9={};V9={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var G9={};G9={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var z9={};z9={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Z9={};Z9={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var W9={};W9={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var q9={};q9={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var U9={};U9={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var H9={};H9={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var X9={};X9={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Y9={};Y9={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var J9={};J9={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var K9={};K9={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Q9={};Q9={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var eB={};eB={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var tB={};tB={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var rB={};rB={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var aB={};aB={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var nB={};nB={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var oB={};oB={"ar-AE":E9,"bg-BG":T9,"cs-CZ":_9,"da-DK":D9,"de-DE":S9,"el-GR":P9,"en-US":I9,"es-ES":j9,"et-EE":k9,"fi-FI":N9,"fr-FR":L9,"he-IL":O9,"hr-HR":B9,"hu-HU":M9,"it-IT":F9,"ja-JP":R9,"ko-KR":V9,"lt-LT":G9,"lv-LV":z9,"nb-NO":Z9,"nl-NL":W9,"pl-PL":q9,"pt-BR":U9,"pt-PT":H9,"ro-RO":X9,"ru-RU":Y9,"sk-SK":J9,"sl-SI":K9,"sr-SP":Q9,"sv-SE":eB,"tr-TR":tB,"uk-UA":rB,"zh-CN":aB,"zh-TW":nB};function nVe(e){return e&&e.__esModule?e.default:e}function oVe(e,t,r){let{id:o,decrementAriaLabel:i,incrementAriaLabel:s,isDisabled:l,isReadOnly:c,isRequired:u,minValue:d,maxValue:f,autoFocus:p,label:m,formatOptions:b,onBlur:h=()=>{},onFocus:y,onFocusChange:v,onKeyDown:$,onKeyUp:C,description:T,errorMessage:x,isWheelDisabled:w,...S}=e,{increment:P,incrementToMax:A,decrement:I,decrementToMin:O,numberValue:j,inputValue:V,commit:k,commitValidation:Z}=t;const U=ti(nVe(oB),"@react-aria/numberfield");let X=Zr(o),{focusProps:ee}=B4({onBlur(){k()}}),te=Y5(b),de=g.useMemo(()=>te.resolvedOptions(),[te]),G=Y5({...b,currencySign:void 0}),N=g.useMemo(()=>isNaN(j)?"":G.format(j),[G,j]),{spinButtonProps:B,incrementButtonProps:L,decrementButtonProps:E}=A9({isDisabled:l,isReadOnly:c,isRequired:u,maxValue:f,minValue:d,onIncrement:P,onIncrementToMax:A,onDecrement:I,onDecrementToMin:O,value:j,textValue:N}),[_,M]=g.useState(!1),{focusWithinProps:z}=Fd({isDisabled:l,onFocusWithinChange:M}),R=g.useCallback(Hr=>{Math.abs(Hr.deltaY)<=Math.abs(Hr.deltaX)||(Hr.deltaY>0?P():Hr.deltaY<0&&I())},[I,P]);fRe({onScroll:R,isDisabled:w||l||c||!_},r);var Q;let fe=((Q=de.maximumFractionDigits)!==null&&Q!==void 0?Q:0)>0,H=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,je="numeric";sL()?H?je="text":fe&&(je="decimal"):v4()&&(H?je="numeric":fe&&(je="decimal"));let ft=Hr=>{t.validate(Hr)&&t.setInputValue(Hr)},Et=Yt(e),Cr=g.useCallback(Hr=>{Hr.key==="Enter"?(k(),Z()):Hr.continuePropagation()},[k,Z]),{isInvalid:Nr,validationErrors:sr,validationDetails:Ft}=t.displayValidation,{labelProps:at,inputProps:Ze,descriptionProps:lr,errorMessageProps:fa}=rVe({...S,...Et,name:void 0,label:m,autoFocus:p,isDisabled:l,isReadOnly:c,isRequired:u,validate:void 0,[Ph]:t,value:V,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:X,type:"text",inputMode:je,onChange:ft,onBlur:h,onFocus:y,onFocusChange:v,onKeyDown:g.useMemo(()=>b4(Cr,$),[Cr,$]),onKeyUp:C,description:T,errorMessage:x},t,r);E4(r,t.numberValue,t.setNumberValue);let Ur=ct(B,ee,Ze,{role:null,"aria-roledescription":Qg()?null:U.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Ur["aria-required"]=void 0);let vn=Hr=>{var ix;document.activeElement!==r.current&&(Hr.pointerType==="mouse"?(ix=r.current)===null||ix===void 0||ix.focus():Hr.target.focus())},pt=e["aria-label"]||(typeof e.label=="string"?e.label:""),Dt;pt||(Dt=e.label!=null?at.id:e["aria-labelledby"]);let pa=Zr(),os=Zr(),gf=ct(L,{"aria-label":s||U.format("increase",{fieldLabel:pt}).trim(),id:Dt&&!s?pa:null,"aria-labelledby":Dt&&!s?`${pa} ${Dt}`:null,"aria-controls":X,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:vn}),UZe=ct(E,{"aria-label":i||U.format("decrease",{fieldLabel:pt}).trim(),id:Dt&&!i?os:null,"aria-labelledby":Dt&&!i?`${os} ${Dt}`:null,"aria-controls":X,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:vn});return{groupProps:{...z,role:"group","aria-disabled":l,"aria-invalid":Nr?"true":void 0},labelProps:at,inputProps:Ur,incrementButtonProps:gf,decrementButtonProps:UZe,errorMessageProps:fa,descriptionProps:lr,isInvalid:Nr,validationErrors:sr,validationDetails:Ft}}const iVe=g.createContext(null);function sVe(){let e=g.useContext(iVe),t=e==null?void 0:e.setContain;La(()=>{t==null||t(!0)},[t])}var iB={};iB={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var sB={};sB={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var lB={};lB={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var cB={};cB={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var uB={};uB={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var dB={};dB={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var fB={};fB={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var pB={};pB={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var mB={};mB={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var gB={};gB={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var hB={};hB={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var bB={};bB={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var yB={};yB={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var vB={};vB={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var $B={};$B={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var CB={};CB={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var xB={};xB={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var wB={};wB={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var AB={};AB={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var EB={};EB={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var TB={};TB={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var _B={};_B={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var DB={};DB={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var SB={};SB={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var PB={};PB={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var IB={};IB={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var jB={};jB={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var kB={};kB={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var NB={};NB={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var LB={};LB={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var OB={};OB={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var BB={};BB={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var MB={};MB={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var FB={};FB={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var jh={};jh={"ar-AE":iB,"bg-BG":sB,"cs-CZ":lB,"da-DK":cB,"de-DE":uB,"el-GR":dB,"en-US":fB,"es-ES":pB,"et-EE":mB,"fi-FI":gB,"fr-FR":hB,"he-IL":bB,"hr-HR":yB,"hu-HU":vB,"it-IT":$B,"ja-JP":CB,"ko-KR":xB,"lt-LT":wB,"lv-LV":AB,"nb-NO":EB,"nl-NL":TB,"pl-PL":_B,"pt-BR":DB,"pt-PT":SB,"ro-RO":PB,"ru-RU":IB,"sk-SK":jB,"sl-SI":kB,"sr-SP":NB,"sv-SE":LB,"tr-TR":OB,"uk-UA":BB,"zh-CN":MB,"zh-TW":FB};function RB(e,t,r){let{direction:o}=kr(),i=g.useMemo(()=>gC(t),[t]),s=u=>{if(u.currentTarget.contains(u.target)&&(u.altKey&&(u.key==="ArrowDown"||u.key==="ArrowUp")&&"setOpen"in e&&(u.preventDefault(),u.stopPropagation(),e.setOpen(!0)),!r))switch(u.key){case"ArrowLeft":if(u.preventDefault(),u.stopPropagation(),o==="rtl"){if(t.current){let d=u.target,f=VB(t.current,d.getBoundingClientRect().left,-1);f&&f.focus()}}else i.focusPrevious();break;case"ArrowRight":if(u.preventDefault(),u.stopPropagation(),o==="rtl"){if(t.current){let d=u.target,f=VB(t.current,d.getBoundingClientRect().left,1);f&&f.focus()}}else i.focusNext();break}},l=()=>{var u;if(!t.current)return;let d=(u=window.event)===null||u===void 0?void 0:u.target,f=Yl(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let p;do p=f.lastChild(),p&&(d=p);while(p)}for(;d!=null&&d.hasAttribute("data-placeholder");){let p=f.previousNode();if(p&&p.hasAttribute("data-placeholder"))d=p;else break}d&&d.focus()},{pressProps:c}=I4({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(u){u.pointerType==="mouse"&&l()},onPress(u){u.pointerType!=="mouse"&&l()}});return ct(c,{onKeyDown:s})}function VB(e,t,r){let o=Yl(e,{tabbable:!0}),i=o.nextNode(),s=null,l=1/0;for(;i;){let u=i.getBoundingClientRect().left-t,d=Math.abs(u);Math.sign(u)===r&&d<l&&(s=i,l=d),i=o.nextNode()}return s}function lVe(e){return e&&e.__esModule?e.default:e}const GB=new WeakMap,kh="__role_"+Date.now(),cVe="__focusManager_"+Date.now();function uVe(e,t,r){var o;let{isInvalid:i,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:f}=wC({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),p=g.useRef(null),{focusWithinProps:m}=Fd({...e,onFocusWithin(O){var j;p.current=t.value,(j=e.onFocus)===null||j===void 0||j.call(e,O)},onBlurWithin:O=>{var j;t.confirmPlaceholder(),t.value!==p.current&&t.commitValidation(),(j=e.onBlur)===null||j===void 0||j.call(e,O)},onFocusWithinChange:e.onFocusChange}),b=ti(lVe(jh),"@react-aria/datepicker"),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",y=t.maxGranularity==="hour"?"time":"date",v=t.value?b.format(h,{[y]:t.formatValue({month:"long"})}):"",$=w4(v),C=e[kh]==="presentation"?u["aria-describedby"]:[$["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,T=e[cVe],x=g.useMemo(()=>T||gC(r),[T,r]),w=RB(t,r,e[kh]==="presentation");GB.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:x});let S=g.useRef(e.autoFocus),P;e[kh]==="presentation"?P={role:"presentation"}:P=ct(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),g.useEffect(()=>{S.current&&x.focusFirst(),S.current=!1},[x]),E4(e.inputRef,t.value,t.setValue),FO({...e,focus(){x.focusFirst()}},t,e.inputRef);let A={type:"hidden",name:e.name,value:((o=t.value)===null||o===void 0?void 0:o.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(A.type="text",A.hidden=!0,A.required=e.isRequired,A.onChange=()=>{});let I=Yt(e);return{labelProps:{...c,onClick:()=>{x.focusFirst()}},fieldProps:ct(I,P,w,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)},style:{unicodeBidi:"isolate"}}),inputProps:A,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:s,validationDetails:l}}function dVe(e){return e&&e.__esModule?e.default:e}function fVe(e,t,r){let o=Zr(),i=Zr(),s=Zr(),l=ti(dVe(jh),"@react-aria/datepicker"),{isInvalid:c,validationErrors:u,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:p,descriptionProps:m,errorMessageProps:b}=wC({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||u}),h=RB(t,r),y=p["aria-labelledby"]||p.id,{locale:v}=kr(),$=t.formatValue(v,{month:"long"}),C=$?l.format("selectedDateDescription",{date:$}):"",T=w4(C),x=[T["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=Yt(e),S=g.useMemo(()=>gC(r),[r]),P=g.useRef(!1),{focusWithinProps:A}=Fd({...e,isDisabled:t.isOpen,onBlurWithin:I=>{let O=document.getElementById(i);if(!(O!=null&&O.contains(I.relatedTarget))){var j,V;P.current=!1,(j=e.onBlur)===null||j===void 0||j.call(e,I),(V=e.onFocusChange)===null||V===void 0||V.call(e,!1)}},onFocusWithin:I=>{if(!P.current){var O,j;P.current=!0,(O=e.onFocus)===null||O===void 0||O.call(e,I),(j=e.onFocusChange)===null||j===void 0||j.call(e,!0)}}});return{groupProps:ct(w,h,p,T,A,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":y,"aria-describedby":x,onKeyDown(I){t.isOpen||e.onKeyDown&&e.onKeyDown(I)},onKeyUp(I){t.isOpen||e.onKeyUp&&e.onKeyUp(I)}}),labelProps:{...f,onClick:()=>{S.focusFirst()}},fieldProps:{...p,id:s,[kh]:"presentation","aria-describedby":x,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Ph]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:b,buttonProps:{...T,id:o,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${o} ${y}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${o} ${y}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:c,validationErrors:u,validationDetails:d}}function pVe(e){return e&&e.__esModule?e.default:e}function mVe(){let{locale:e}=kr(),t=YL(pVe(jh),"@react-aria/datepicker");return g.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new gVe(e,t)}},[e,t])}class gVe{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,r){this.locale=t,this.dictionary=r}}function hVe(e,t,r){let o=g.useRef(""),{locale:i,direction:s}=kr(),l=mVe(),{ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d,focusManager:f}=GB.get(t),p=e.isPlaceholder?"":e.text,m=g.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=hn({month:"long",timeZone:m.timeZone}),h=hn({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(e.type==="month"&&!e.isPlaceholder){let G=b.format(t.dateValue);p=G!==p?`${p} – ${G}`:G}else e.type==="hour"&&!e.isPlaceholder&&(p=h.format(t.dateValue));let{spinButtonProps:y}=A9({value:e.value,textValue:p,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{o.current="",t.increment(e.type)},onDecrement:()=>{o.current="",t.decrement(e.type)},onIncrementPage:()=>{o.current="",t.incrementPage(e.type)},onDecrementPage:()=>{o.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{o.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{o.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),v=g.useMemo(()=>new fC(i,{maximumFractionDigits:0}),[i]),$=()=>{if(e.text===e.placeholder&&f.focusPrevious(),v.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let G=e.text.slice(0,-1),N=v.parse(G);G=N===0?"":G,G.length===0||N===0?t.clearSegment(e.type):t.setSegment(e.type,N),o.current=G}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=G=>{if(G.key==="a"&&(Fl()?G.metaKey:G.ctrlKey)&&G.preventDefault(),!(G.ctrlKey||G.metaKey||G.shiftKey||G.altKey))switch(G.key){case"Backspace":case"Delete":G.preventDefault(),G.stopPropagation(),$();break}},{startsWith:T}=k7e({sensitivity:"base"}),x=hn({hour:"numeric",hour12:!0}),w=g.useMemo(()=>{let G=new Date;return G.setHours(0),x.formatToParts(G).find(N=>N.type==="dayPeriod").value},[x]),S=g.useMemo(()=>{let G=new Date;return G.setHours(12),x.formatToParts(G).find(N=>N.type==="dayPeriod").value},[x]),P=hn({year:"numeric",era:"narrow",timeZone:"UTC"}),A=g.useMemo(()=>{if(e.type!=="era")return[];let G=At(new Lt(1,1,1),t.calendar),N=t.calendar.getEras().map(L=>{let E=G.set({year:1,month:1,day:1,era:L}).toDate("UTC"),M=P.formatToParts(E).find(z=>z.type==="era").value;return{era:L,formatted:M}}),B=bVe(N.map(L=>L.formatted));if(B)for(let L of N)L.formatted=L.formatted.slice(B);return N},[P,t.calendar,e.type]),I=G=>{if(t.isDisabled||t.isReadOnly)return;let N=o.current+G;switch(e.type){case"dayPeriod":if(T(w,G))t.setSegment("dayPeriod",0);else if(T(S,G))t.setSegment("dayPeriod",12);else break;f.focusNext();break;case"era":{let B=A.find(L=>T(L.formatted,G));B&&(t.setSegment("era",B.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!v.isValidPartialNumber(N))return;let B=v.parse(N),L=B,E=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":B>11&&(L=v.parse(G));break;case"h12":E=!1,B>12&&(L=v.parse(G));break}e.value!==void 0&&e.value>=12&&B>1&&(B+=12)}else e.maxValue!==void 0&&B>e.maxValue&&(L=v.parse(G));if(isNaN(B))return;let _=L!==0||E;_&&t.setSegment(e.type,L),e.maxValue!==void 0&&(+(B+"0")>e.maxValue||N.length>=String(e.maxValue).length)?(o.current="",_&&f.focusNext()):o.current=N;break}}},O=()=>{o.current="",r.current&&hL(r.current,{containingElement:mL(r.current)});let G=window.getSelection();G==null||G.collapse(r.current)},j=g.useRef(typeof document<"u"?document:null);rh(j,"selectionchange",()=>{var G;let N=window.getSelection();N!=null&&N.anchorNode&&(!((G=r.current)===null||G===void 0)&&G.contains(N==null?void 0:N.anchorNode))&&N.collapse(r.current)});let V=g.useRef("");rh(r,"beforeinput",G=>{if(r.current)switch(G.preventDefault(),G.inputType){case"deleteContentBackward":case"deleteContentForward":v.isValidPartialNumber(e.text)&&!t.isReadOnly&&$();break;case"insertCompositionText":V.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:G.data!=null&&I(G.data);break}}),rh(r,"input",G=>{let{inputType:N,data:B}=G;switch(N){case"insertCompositionText":r.current&&(r.current.textContent=V.current),B!=null&&(T(w,B)||T(S,B))&&I(B);break}}),La(()=>{let G=r.current;return()=>{document.activeElement===G&&(f.focusPrevious()||f.focusNext())}},[r,f]);let k=Qg()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},Z=g.useMemo(()=>t.segments.find(G=>G.isEditable),[t.segments]);e!==Z&&!t.isInvalid&&(d=void 0);let U=Zr(),X=!t.isDisabled&&!t.isReadOnly&&e.isEditable,ee=e.type==="literal"?"":l.of(e.type),te=th({"aria-label":`${ee}${c?`, ${c}`:""}${u?", ":""}`,"aria-labelledby":u});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let de={caretColor:"transparent"};if(s==="rtl"){de.unicodeBidi="embed";let G=m[e.type];(G==="numeric"||G==="2-digit")&&(de.direction="ltr")}return{segmentProps:ct(y,te,{id:U,...k,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:X,suppressContentEditableWarning:X,spellCheck:X?"false":void 0,autoCorrect:X?"off":void 0,[parseInt(g.version,10)>=17?"enterKeyHint":"enterkeyhint"]:X?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!X?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:O,style:de,onPointerDown(G){G.stopPropagation()},onMouseDown(G){G.stopPropagation()}})}}function bVe(e){e.sort();let t=e[0],r=e[e.length-1];for(let o=0;o<t.length;o++)if(t[o]!==r[o])return o;return 0}function yVe(e,t){let{role:r="dialog"}=e,o=Xg();o=e["aria-label"]?void 0:o;let i=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){dh(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),dh(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),sVe(),{dialogProps:{...Yt(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:o}}}const EC=g.createContext({});let vVe=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,...i}=e;return i};const zB=CL(function(t,r){[t,r]=ao(t,r,EC);let{hoverProps:o,isHovered:i}=Rd(t),{isFocused:s,isFocusVisible:l,focusProps:c}=Jl({isTextInput:!0,autoFocus:t.autoFocus}),u=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ro({...t,values:{isHovered:i,isFocused:s,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return g.createElement("input",{...ct(vVe(t),c,o),...d,ref:r,"data-focused":s||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})}),ZB=g.createContext({}),$Ve=g.createContext(null),CVe=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Qd=g.createContext({}),Nh=CL(function(t,r){[t,r]=ao(t,r,Qd),t=xVe(t);let o=t,{isPending:i}=o,{buttonProps:s,isPressed:l}=N7e(t,r),{focusProps:c,isFocused:u,isFocusVisible:d}=Jl(t),{hoverProps:f,isHovered:p}=Rd({...t,isDisabled:t.isDisabled||i}),m={isHovered:p,isPressed:(o.isPressed||l)&&!i,isFocused:u,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:i??!1},b=ro({...t,values:m,defaultClassName:"react-aria-Button"}),h=Zr(s.id),y=Zr(),v=s["aria-labelledby"];i&&(v?v=`${v} ${y}`:s["aria-label"]&&(v=`${h} ${y}`));let $=g.useRef(i);return g.useEffect(()=>{let C={"aria-labelledby":v||h};(!$.current&&u&&i||$.current&&u&&!i)&&Jd(C,"assertive"),$.current=i},[i,u,v,h]),g.createElement("button",{...Yt(t,{propNames:CVe}),...ct(s,c,f),...b,type:s.type==="submit"&&i?"button":s.type,id:h,ref:r,"aria-labelledby":v,slot:t.slot||void 0,"aria-disabled":i?"true":s["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":p||void 0,"data-focused":u||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},g.createElement($Ve.Provider,{value:{id:y}},b.children))});function xVe(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const TC=g.createContext({}),WB=g.createContext(null);function _C(e,t,r){return t!=null&&e.compare(t)<0||r!=null&&e.compare(r)>0}function qB(e,t,r,o,i){let s={};for(let c in t)s[c]=Math.floor(t[c]/2),s[c]>0&&t[c]%2===0&&s[c]--;let l=as(e,t,r).subtract(s);return ef(e,l,t,r,o,i)}function as(e,t,r,o,i){let s=e;return t.years?s=IRe(e):t.months?s=es(e):t.weeks&&(s=zd(e,r)),ef(e,s,t,r,o,i)}function DC(e,t,r,o,i){let s={...t};s.days?s.days--:s.weeks?s.weeks--:s.months?s.months--:s.years&&s.years--;let l=as(e,t,r).subtract(s);return ef(e,l,t,r,o,i)}function ef(e,t,r,o,i,s){if(i&&e.compare(i)>=0){let l=n5(t,as(Oa(i),r,o));l&&(t=l)}if(s&&e.compare(s)<=0){let l=a5(t,DC(Oa(s),r,o));l&&(t=l)}return t}function ns(e,t,r){if(t){let o=n5(e,Oa(t));o&&(e=o)}if(r){let o=a5(e,Oa(r));o&&(e=o)}return e}function wVe(e,t,r){if(!r)return e;for(;e.compare(t)>=0&&r(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function AVe(e){let t=g.useMemo(()=>new so(e.locale),[e.locale]),r=g.useMemo(()=>t.resolvedOptions(),[t]),{locale:o,createCalendar:i,visibleDuration:s={months:1},minValue:l,maxValue:c,selectionAlignment:u,isDateUnavailable:d,pageBehavior:f="visible",firstDayOfWeek:p}=e,m=g.useMemo(()=>i(r.calendar),[i,r.calendar]);var b;let[h,y]=Xi(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),v=g.useMemo(()=>h?At(Oa(h),m):null,[h,m]),$=g.useMemo(()=>h&&"timeZone"in h?h.timeZone:r.timeZone,[h,r.timeZone]),C=g.useMemo(()=>e.focusedValue?ns(At(Oa(e.focusedValue),m),l,c):void 0,[e.focusedValue,m,l,c]),T=g.useMemo(()=>ns(e.defaultFocusedValue?At(Oa(e.defaultFocusedValue),m):v||At(G4($),m),l,c),[e.defaultFocusedValue,v,$,m,l,c]),[x,w]=Xi(C,T,e.onFocusChange),[S,P]=g.useState(()=>{switch(u){case"start":return as(x,s,o,l,c);case"end":return DC(x,s,o,l,c);case"center":default:return qB(x,s,o,l,c)}}),[A,I]=g.useState(e.autoFocus||!1),O=g.useMemo(()=>{let N={...s};return N.days?N.days--:N.days=-1,S.add(N)},[S,s]),[j,V]=g.useState(m.identifier);if(m.identifier!==j){let N=At(x,m);P(qB(N,s,o,l,c)),w(N),V(m.identifier)}_C(x,l,c)?w(ns(x,l,c)):x.compare(S)<0?P(DC(x,s,o,l,c)):x.compare(O)>0&&P(as(x,s,o,l,c));function k(N){N=ns(N,l,c),w(N)}function Z(N){if(!e.isDisabled&&!e.isReadOnly){let B=N;if(B===null){y(null);return}if(B=ns(B,l,c),B=wVe(B,S,d),!B)return;B=At(B,(h==null?void 0:h.calendar)||new qr),h&&"hour"in h?y(h.set(B)):y(B)}}let U=g.useMemo(()=>v?d&&d(v)?!0:_C(v,l,c):!1,[v,d,l,c]),X=e.isInvalid||e.validationState==="invalid"||U,ee=X?"invalid":null,te=g.useMemo(()=>f==="visible"?s:SC(s),[f,s]);var de,G;return{isDisabled:(de=e.isDisabled)!==null&&de!==void 0?de:!1,isReadOnly:(G=e.isReadOnly)!==null&&G!==void 0?G:!1,value:v,setValue:Z,visibleRange:{start:S,end:O},minValue:l,maxValue:c,focusedDate:x,timeZone:$,validationState:ee,isValueInvalid:X,setFocusedDate(N){k(N),I(!0)},focusNextDay(){k(x.add({days:1}))},focusPreviousDay(){k(x.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&k(x.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&k(x.subtract({weeks:1}))},focusNextPage(){let N=S.add(te);w(ns(x.add(te),l,c)),P(as(ef(x,N,te,o,l,c),te,o))},focusPreviousPage(){let N=S.subtract(te);w(ns(x.subtract(te),l,c)),P(as(ef(x,N,te,o,l,c),te,o))},focusSectionStart(){s.days?k(S):s.weeks?k(zd(x,o)):(s.months||s.years)&&k(es(x))},focusSectionEnd(){s.days?k(O):s.weeks?k(NRe(x,o)):(s.months||s.years)&&k(mh(x))},focusNextSection(N){if(!N&&!s.days){k(x.add(SC(s)));return}s.days?this.focusNextPage():s.weeks?k(x.add({months:1})):(s.months||s.years)&&k(x.add({years:1}))},focusPreviousSection(N){if(!N&&!s.days){k(x.subtract(SC(s)));return}s.days?this.focusPreviousPage():s.weeks?k(x.subtract({months:1})):(s.months||s.years)&&k(x.subtract({years:1}))},selectFocusedDate(){d&&d(x)||Z(x)},selectDate(N){Z(N)},isFocused:A,setFocused:I,isInvalid(N){return _C(N,l,c)},isSelected(N){return v!=null&&Mt(N,v)&&!this.isCellDisabled(N)&&!this.isCellUnavailable(N)},isCellFocused(N){return A&&x&&Mt(N,x)},isCellDisabled(N){return e.isDisabled||N.compare(S)<0||N.compare(O)>0||this.isInvalid(N)},isCellUnavailable(N){return e.isDateUnavailable?e.isDateUnavailable(N):!1},isPreviousVisibleRangeInvalid(){let N=S.subtract({days:1});return Mt(N,S)||this.isInvalid(N)},isNextVisibleRangeInvalid(){let N=O.add({days:1});return Mt(N,O)||this.isInvalid(N)},getDatesInWeek(N,B=S){let L=B.add({weeks:N}),E=[];L=zd(L,o,p);let _=V4(L,o,p);for(let M=0;M<_;M++)E.push(null);for(;E.length<7;){E.push(L);let M=L.add({days:1});if(Mt(L,M))break;L=M}for(;E.length<7;)E.push(null);return E}}}function SC(e){let t={...e};for(let r in e)t[r]=1;return t}function EVe(e){let[t,r]=Xi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=g.useCallback(()=>{r(!0)},[r]),i=g.useCallback(()=>{r(!1)},[r]),s=g.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:o,close:i,toggle:s}}var UB={};UB={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var HB={};HB={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var XB={};XB={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var YB={};YB={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var JB={};JB={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var KB={};KB={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var QB={};QB={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var e6={};e6={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var t6={};t6={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var r6={};r6={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var a6={};a6={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var n6={};n6={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var o6={};o6={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var i6={};i6={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var s6={};s6={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var l6={};l6={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var c6={};c6={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var u6={};u6={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var d6={};d6={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var f6={};f6={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var p6={};p6={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var m6={};m6={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var g6={};g6={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var h6={};h6={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var b6={};b6={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var y6={};y6={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var v6={};v6={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var $6={};$6={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var C6={};C6={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var x6={};x6={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var w6={};w6={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var A6={};A6={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var E6={};E6={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var T6={};T6={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var _6={};_6={"ar-AE":UB,"bg-BG":HB,"cs-CZ":XB,"da-DK":YB,"de-DE":JB,"el-GR":KB,"en-US":QB,"es-ES":e6,"et-EE":t6,"fi-FI":r6,"fr-FR":a6,"he-IL":n6,"hr-HR":o6,"hu-HU":i6,"it-IT":s6,"ja-JP":l6,"ko-KR":c6,"lt-LT":u6,"lv-LV":d6,"nb-NO":f6,"nl-NL":p6,"pl-PL":m6,"pt-BR":g6,"pt-PT":h6,"ro-RO":b6,"ru-RU":y6,"sk-SK":v6,"sl-SI":$6,"sr-SP":C6,"sv-SE":x6,"tr-TR":w6,"uk-UA":A6,"zh-CN":E6,"zh-TW":T6};function TVe(e){return e&&e.__esModule?e.default:e}const _Ve=new Ki(TVe(_6));function DVe(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function D6(e,t,r,o,i){let s=e!=null&&r!=null&&e.compare(r)>0,l=e!=null&&t!=null&&e.compare(t)<0,c=e!=null&&(o==null?void 0:o(e))||!1,u=s||l||c,d=[];if(u){let f=DVe(),p=Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||_Ve,m=new HL(f,p),b=new so(f,Kl({},i)),h=b.resolvedOptions().timeZone;l&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:b.format(t.toDate(h))})),s&&r!=null&&d.push(m.format("rangeOverflow",{maxValue:b.format(r.toDate(h))})),c&&d.push(m.format("unavailableDate"))}return{isInvalid:u,validationErrors:d,validationDetails:{badInput:c,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!u}}}const SVe={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},PVe={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Kl(e,t){e={...t.shouldForceLeadingZeros?PVe:SVe,...e};let o=t.granularity||"minute",i=Object.keys(e);var s;let l=i.indexOf((s=t.maxGranularity)!==null&&s!==void 0?s:"year");l<0&&(l=0);let c=i.indexOf(o);if(c<0&&(c=2),l>c)throw new Error("maxGranularity must be greater than granularity");let u=i.slice(l,c+1).reduce((f,p)=>(f[p]=e[p],f),{});return t.hourCycle!=null&&(u.hour12=t.hourCycle===12),u.timeZone=t.timeZone||"UTC",(o==="hour"||o==="minute"||o==="second")&&t.timeZone&&!t.hideTimeZone&&(u.timeZoneName="short"),t.showEra&&l===0&&(u.era="short"),u}function S6(e){return e&&"hour"in e?e:new K4}function P6(e,t){if(e===null)return null;if(e)return At(e,t)}function tf(e,t,r,o){if(e)return P6(e,r);let i=At(KL(o??ai()).set({hour:0,minute:0,second:0,millisecond:0}),r);return t==="year"||t==="month"||t==="day"?Oa(i):o?i:gn(i)}function I6(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,o=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,s]=g.useState([o,r]);e&&(i[0]!==o||i[1]!==r)&&s([o,r]),t||(t=e?o:i[0]);let l=e?r:i[1];return[t,l]}function IVe(e){let t=EVe(e),[r,o]=Xi(e.value,e.defaultValue||null,e.onChange),i=r||e.placeholderValue||null,[s,l]=I6(i,e.granularity),c=r!=null?r.toDate(l??"UTC"):null,u=s==="hour"||s==="minute"||s==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[p,m]=g.useState(null),[b,h]=g.useState(null);if(r&&(p=r,"hour"in r&&(b=r)),i&&!(s in i))throw new Error("Invalid granularity "+s+" for value "+i.toString());let y=(r==null?void 0:r.calendar.identifier)==="gregory"&&r.era==="BC",v=g.useMemo(()=>({granularity:s,timeZone:l,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:y}),[s,e.hourCycle,e.shouldForceLeadingZeros,l,e.hideTimeZone,y]),{minValue:$,maxValue:C,isDateUnavailable:T}=e,x=g.useMemo(()=>D6(r,$,C,T,v),[r,$,C,T,v]),w=Ih({...e,value:r,builtinValidation:x}),S=w.displayValidation.isInvalid,P=e.validationState||(S?"invalid":null),A=(j,V)=>{o("timeZone"in V?V.set(Oa(j)):gn(j,V)),m(null),h(null),w.commitValidation()};return{...w,value:r,setValue:o,dateValue:p,timeValue:b,setDateValue:j=>{let V=typeof f=="function"?f():f;u?b||V?A(j,b||S6(e.defaultValue||e.placeholderValue)):m(j):(o(j),w.commitValidation()),V&&t.setOpen(!1)},setTimeValue:j=>{p&&j?A(p,j):h(j)},granularity:s,hasTime:u,...t,setOpen(j){!j&&!r&&p&&u&&A(p,b||S6(e.defaultValue||e.placeholderValue)),t.setOpen(j)},validationState:P,isInvalid:S,formatValue(j,V){if(!c)return"";let k=Kl(V,v);return new so(j,k).format(c)},getDateFormatter(j,V){let k={...v,...V},Z=Kl({},k);return new so(j,Z)}}}const jVe=new Ki({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function kVe(e,t,r){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?jVe.getStringForLocale(e,r):"––"}const Lh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},j6={year:5,month:2,day:7,hour:2,minute:15,second:15},NVe={dayperiod:"dayPeriod"};function LVe(e){let{locale:t,createCalendar:r,hideTimeZone:o,isDisabled:i=!1,isReadOnly:s=!1,isRequired:l=!1,minValue:c,maxValue:u,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[p,m]=I6(f,e.granularity),b=m||"UTC";if(f&&!(p in f))throw new Error("Invalid granularity "+p+" for value "+f.toString());let h=g.useMemo(()=>new so(t),[t]),y=g.useMemo(()=>r(h.resolvedOptions().calendar),[r,h]);var v;let[$,C]=Xi(e.value,(v=e.defaultValue)!==null&&v!==void 0?v:null,e.onChange),T=g.useMemo(()=>{var R;return(R=P6($,y))!==null&&R!==void 0?R:null},[$,y]),[x,w]=g.useState(()=>tf(e.placeholderValue,p,y,m)),S=T||x,P=y.identifier==="gregory"&&S.era==="BC",A=g.useMemo(()=>{var R;return{granularity:p,maxGranularity:(R=e.maxGranularity)!==null&&R!==void 0?R:"year",timeZone:m,hideTimeZone:o,hourCycle:e.hourCycle,showEra:P,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,p,e.hourCycle,e.shouldForceLeadingZeros,m,o,P]),I=g.useMemo(()=>Kl({},A),[A]),O=g.useMemo(()=>new so(t,I),[t,I]),j=g.useMemo(()=>O.resolvedOptions(),[O]),V=g.useMemo(()=>O.formatToParts(new Date).filter(R=>Lh[R.type]).reduce((R,W)=>(R[W.type]=!0,R),{}),[O]),[k,Z]=g.useState(()=>e.value||e.defaultValue?{...V}:{}),U=g.useRef(null),X=g.useRef(y.identifier);g.useEffect(()=>{y.identifier!==X.current&&(X.current=y.identifier,w(R=>Object.keys(k).length>0?At(R,y):tf(e.placeholderValue,p,y,m)))},[y,p,k,m,e.placeholderValue]),$&&Object.keys(k).length<Object.keys(V).length&&(k={...V},Z(k)),$==null&&Object.keys(k).length===Object.keys(V).length&&(k={},Z(k),w(tf(e.placeholderValue,p,y,m)));let ee=T&&Object.keys(k).length>=Object.keys(V).length?T:x,te=R=>{if(e.isDisabled||e.isReadOnly)return;let W=Object.keys(k),Q=Object.keys(V);R==null?(C(null),w(tf(e.placeholderValue,p,y,m)),Z({})):W.length>=Q.length||W.length===Q.length-1&&V.dayPeriod&&!k.dayPeriod&&U.current!=="dayPeriod"?(R=At(R,(f==null?void 0:f.calendar)||new qr),C(R)):w(R),U.current=null},de=g.useMemo(()=>ee.toDate(b),[ee,b]),G=g.useMemo(()=>OVe(de,k,O,j,ee,y,t,p),[de,k,O,j,ee,y,t,p]);V.era&&k.year&&!k.era?(k.era=!0,Z({...k})):!V.era&&k.era&&(delete k.era,Z({...k}));let N=R=>{k[R]=!0,R==="year"&&V.era&&(k.era=!0),Z({...k})},B=(R,W)=>{if(k[R])te(BVe(ee,R,W,j));else{N(R);let Q=Object.keys(k),fe=Object.keys(V);(Q.length>=fe.length||Q.length===fe.length-1&&V.dayPeriod&&!k.dayPeriod)&&te(ee)}},L=g.useMemo(()=>D6($,c,u,d,A),[$,c,u,d,A]),E=Ih({...e,value:$,builtinValidation:L}),_=E.displayValidation.isInvalid,M=e.validationState||(_?"invalid":null);var z;return{...E,value:T,dateValue:de,calendar:y,setValue:te,segments:G,dateFormatter:O,validationState:M,isInvalid:_,granularity:p,maxGranularity:(z=e.maxGranularity)!==null&&z!==void 0?z:"year",isDisabled:i,isReadOnly:s,isRequired:l,increment(R){B(R,1)},decrement(R){B(R,-1)},incrementPage(R){B(R,j6[R]||1)},decrementPage(R){B(R,-(j6[R]||1))},setSegment(R,W){N(R),te(MVe(ee,R,W,j))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let R=Object.keys(k),W=Object.keys(V);R.length===W.length-1&&V.dayPeriod&&!k.dayPeriod&&(k={...V},Z(k),te(ee.copy()))},clearSegment(R){delete k[R],U.current=R,Z({...k});let W=tf(e.placeholderValue,p,y,m),Q=ee;if(R==="dayPeriod"&&"hour"in ee&&"hour"in W){let fe=ee.hour>=12,H=W.hour>=12;fe&&!H?Q=ee.set({hour:ee.hour-12}):!fe&&H&&(Q=ee.set({hour:ee.hour+12}))}else R==="hour"&&"hour"in ee&&ee.hour>=12&&k.dayPeriod?Q=ee.set({hour:W.hour+12}):R in ee&&(Q=ee.set({[R]:W[R]}));C(null),te(Q)},formatValue(R){if(!T)return"";let W=Kl(R,A);return new so(t,W).format(de)},getDateFormatter(R,W){let Q={...A,...W},fe=Kl({},Q);return new so(R,fe)}}}function OVe(e,t,r,o,i,s,l,c){let u=["hour","minute","second"],d=r.formatToParts(e),f=[];for(let p of d){let m=Lh[p.type];p.type==="era"&&s.getEras().length===1&&(m=!1);let b=Lh[p.type]&&!t[p.type],h=Lh[p.type]?kVe(p.type,p.value,l):null,y={type:NVe[p.type]||p.type,text:b?h:p.value,...Oh(i,p.type,o),isPlaceholder:b,placeholder:h,isEditable:m};p.type==="hour"?(f.push({type:"literal",text:"⁦",...Oh(i,"literal",o),isPlaceholder:!1,placeholder:"",isEditable:!1}),f.push(y),p.type===c&&f.push({type:"literal",text:"⁩",...Oh(i,"literal",o),isPlaceholder:!1,placeholder:"",isEditable:!1})):u.includes(p.type)&&p.type===c?(f.push(y),f.push({type:"literal",text:"⁩",...Oh(i,"literal",o),isPlaceholder:!1,placeholder:"",isEditable:!1})):f.push(y)}return f}function Oh(e,t,r){switch(t){case"era":{let o=e.calendar.getEras();return{value:o.indexOf(e.era),minValue:0,maxValue:o.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:jRe(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:kRe(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(r.hour12){let o=e.hour>=12;return{value:e.hour,minValue:o?12:0,maxValue:o?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function BVe(e,t,r,o){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,r,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,s=i>=12;return e.set({hour:s?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,r,{round:t!=="hour",hourCycle:o.hour12?12:24})}throw new Error("Unknown segment: "+t)}function MVe(e,t,r,o){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:r})}if("hour"in e&&typeof r=="number")switch(t){case"dayPeriod":{let i=e.hour,s=i>=12;return r>=12===s?e:e.set({hour:s?i-12:i+12})}case"hour":if(o.hour12){let s=e.hour>=12;!s&&r===12&&(r=0),s&&r<12&&(r+=12)}case"minute":case"second":return e.set({[t]:r})}throw new Error("Unknown segment: "+t)}const k6=g.createContext(null),Bh=g.createContext({}),PC=g.forwardRef(function(t,r){[t,r]=ao(t,r,Bh);let{isDisabled:o,isInvalid:i,onHoverStart:s,onHoverChange:l,onHoverEnd:c,...u}=t,{hoverProps:d,isHovered:f}=Rd({onHoverStart:s,onHoverChange:l,onHoverEnd:c,isDisabled:o}),{isFocused:p,isFocusVisible:m,focusProps:b}=Jl({within:!0});o??(o=!!t["aria-disabled"]&&t["aria-disabled"]!=="false"),i??(i=!!t["aria-invalid"]&&t["aria-invalid"]!=="false");let h=ro({...t,values:{isHovered:f,isFocusWithin:p,isFocusVisible:m,isDisabled:o,isInvalid:i},defaultClassName:"react-aria-Group"});var y,v;return g.createElement("div",{...ct(u,b,d),...h,ref:r,role:(y=t.role)!==null&&y!==void 0?y:"group",slot:(v=t.slot)!==null&&v!==void 0?v:void 0,"data-focus-within":p||void 0,"data-hovered":f||void 0,"data-focus-visible":m||void 0,"data-disabled":o||void 0,"data-invalid":i||void 0},h.children)}),Mh=g.createContext(null),FVe=g.createContext(null),Fh=g.createContext(null),IC=g.createContext(null),RVe=g.forwardRef(function(t,r){[t,r]=ao(t,r,Mh);let{locale:o}=kr(),i=AVe({...t,locale:o,createCalendar:z5}),{calendarProps:s,prevButtonProps:l,nextButtonProps:c,errorMessageProps:u,title:d}=G7e(t,i),f=ro({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-Calendar"});return g.createElement("div",{...f,...s,ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},g.createElement(Ld,{values:[[Qd,{slots:{previous:l,next:c}}],[g4,{"aria-hidden":!0,level:2,children:d}],[Fh,i],[Mh,t],[TC,{slots:{errorMessage:u}}]]},g.createElement(VO,null,g.createElement("h2",null,s["aria-label"])),f.children,g.createElement(VO,null,g.createElement("button",{"aria-label":c["aria-label"],disabled:c.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),Rh=g.createContext(null),VVe=g.forwardRef(function(t,r){let o=g.useContext(Fh),i=g.useContext(IC),s=Od(Mh),l=Od(FVe),c=o??i,u=c.visibleRange.start;t.offset&&(u=u.add(t.offset));var d;let f=(d=s==null?void 0:s.firstDayOfWeek)!==null&&d!==void 0?d:l==null?void 0:l.firstDayOfWeek,{gridProps:p,headerProps:m,weekDays:b}=z7e({startDate:u,endDate:mh(u),weekdayStyle:t.weekdayStyle,firstDayOfWeek:f},c);var h;return g.createElement(Rh.Provider,{value:{headerProps:m,weekDays:b,startDate:u,firstDayOfWeek:f}},g.createElement("table",{...Yt(t),...p,ref:r,style:t.style,className:(h=t.className)!==null&&h!==void 0?h:"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:g.createElement(g.Fragment,null,g.createElement(N6,null,y=>g.createElement(L6,null,y)),g.createElement(O6,null,t.children))))});function GVe(e,t){let{children:r,style:o,className:i}=e,{headerProps:s,weekDays:l}=g.useContext(Rh);return g.createElement("thead",{...Yt(e),...s,ref:t,style:o,className:i||"react-aria-CalendarGridHeader"},g.createElement("tr",null,l.map((c,u)=>g.cloneElement(r(c),{key:u}))))}const N6=g.forwardRef(GVe);function zVe(e,t){let{children:r,style:o,className:i}=e;return g.createElement("th",{...Yt(e),ref:t,style:o,className:i||"react-aria-CalendarHeaderCell"},r)}const L6=g.forwardRef(zVe);function ZVe(e,t){let{children:r,style:o,className:i}=e,s=g.useContext(Fh),l=g.useContext(IC),c=s??l,{startDate:u,firstDayOfWeek:d}=g.useContext(Rh),{locale:f}=kr(),p=BRe(u,f,d);return g.createElement("tbody",{...Yt(e),ref:t,style:o,className:i||"react-aria-CalendarGridBody"},[...new Array(p).keys()].map(m=>g.createElement("tr",{key:m},c.getDatesInWeek(m,u).map((b,h)=>b?g.cloneElement(r(b),{key:h}):g.createElement("td",{key:h})))))}const O6=g.forwardRef(ZVe),WVe=g.forwardRef(function({date:t,...r},o){let i=g.useContext(Fh),s=g.useContext(IC),l=i??s;var c;let{startDate:u}=(c=g.useContext(Rh))!==null&&c!==void 0?c:{startDate:l.visibleRange.start},d=g.useRef(null),{cellProps:f,buttonProps:p,...m}=W7e({date:t},l,d),{hoverProps:b,isHovered:h}=Rd({...r,isDisabled:m.isDisabled}),{focusProps:y,isFocusVisible:v}=Jl();v&&(v=m.isFocused);let $=!_Re(u,t),C=!1,T=!1;"highlightedRange"in l&&l.highlightedRange&&(C=Mt(t,l.highlightedRange.start),T=Mt(t,l.highlightedRange.end));let x=ro({...r,defaultChildren:m.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:h,isOutsideMonth:$,isFocusVisible:v,isSelectionStart:C,isSelectionEnd:T,...m}}),w={"data-focused":m.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":m.isPressed||void 0,"data-unavailable":m.isUnavailable||void 0,"data-disabled":m.isDisabled||void 0,"data-focus-visible":v||void 0,"data-outside-visible-range":m.isOutsideVisibleRange||void 0,"data-outside-month":$||void 0,"data-selected":m.isSelected||void 0,"data-selection-start":C||void 0,"data-selection-end":T||void 0,"data-invalid":m.isInvalid||void 0};return g.createElement("td",{...f,ref:o},g.createElement("div",{...ct(Yt(r),p,y,b,w,x),ref:d}))}),qVe=g.createContext(null),B6=g.createContext(null),M6=g.createContext(null),UVe=g.forwardRef(function(t,r){let o=t["aria-labelledby"];[t,r]=ao(t,r,B6);let{dialogProps:i,titleProps:s}=yVe({...t,"aria-labelledby":o},r),l=g.useContext(M6);!i["aria-label"]&&!i["aria-labelledby"]&&(t["aria-labelledby"]?i["aria-labelledby"]=t["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let c=ro({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return g.createElement("section",{...Yt(t),...i,...c,ref:r,slot:t.slot||void 0},g.createElement(Ld,{values:[[g4,{slots:{[D4]:{},title:{...s,level:2}}}],[Qd,{slots:{[D4]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},c.children))}),F6=g.createContext(null),Vh=g.createContext(null),jC=g.createContext(null),HVe=g.forwardRef(function(t,r){let o=g.useContext(Vh),i=g.useContext(jC);return o||i?g.createElement(R6,{...t,ref:r}):g.createElement(XVe,{...t,ref:r})}),XVe=g.forwardRef((e,t)=>{let[r,o]=ao({slot:e.slot},t,F6),{locale:i}=kr(),s=LVe({...r,locale:i,createCalendar:z5}),l=g.useRef(null),{fieldProps:c,inputProps:u}=uVe({...r,inputRef:l},s,o);return g.createElement(Ld,{values:[[Vh,s],[EC,{...u,ref:l}],[Bh,{...c,ref:o,isInvalid:s.isInvalid}]]},g.createElement(R6,e))}),R6=g.forwardRef((e,t)=>{let{className:r,children:o}=e,i=g.useContext(Vh),s=g.useContext(jC),l=i??s;return g.createElement(g.Fragment,null,g.createElement(PC,{...e,ref:t,slot:e.slot||void 0,className:r??"react-aria-DateInput",isInvalid:l.isInvalid},l.segments.map((c,u)=>g.cloneElement(o(c),{key:u}))),g.createElement(zB,null))}),YVe=g.forwardRef(function({segment:t,...r},o){let i=g.useContext(Vh),s=g.useContext(jC),l=i??s,c=dL(o),{segmentProps:u}=hVe(t,l,c),{focusProps:d,isFocused:f,isFocusVisible:p}=Jl(),{hoverProps:m,isHovered:b}=Rd({...r,isDisabled:l.isDisabled||t.type==="literal"}),h=ro({...r,values:{...t,isReadOnly:!t.isEditable,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:b,isFocused:f,isFocusVisible:p},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return g.createElement("span",{...ct(Yt(r),u,d,m),...h,style:u.style,ref:c,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":!t.isEditable||void 0,"data-disabled":l.isDisabled||void 0,"data-type":t.type,"data-hovered":b||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0})}),JVe=g.createContext(null),KVe=g.createContext(null),QVe=g.forwardRef(function(t,r){[t,r]=ao(t,r,JVe);let{validationBehavior:o}=Od(k6)||{};var i,s;let l=(s=(i=t.validationBehavior)!==null&&i!==void 0?i:o)!==null&&s!==void 0?s:"native",c=IVe({...t,validationBehavior:l}),u=g.useRef(null),[d,f]=vL(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:p,labelProps:m,fieldProps:b,buttonProps:h,dialogProps:y,calendarProps:v,descriptionProps:$,errorMessageProps:C,...T}=fVe({...$L(t),label:f,validationBehavior:l},c,u),[x,w]=g.useState(null),S=g.useCallback(()=>{u.current&&w(u.current.offsetWidth+"px")},[]);OFe({ref:u,onResize:S});let{focusProps:P,isFocused:A,isFocusVisible:I}=Jl({within:!0}),O=ro({...t,values:{state:c,isFocusWithin:A,isFocusVisible:I,isDisabled:t.isDisabled||!1,isInvalid:c.isInvalid,isOpen:c.isOpen},defaultClassName:"react-aria-DatePicker"}),j=Yt(t);return delete j.id,g.createElement(Ld,{values:[[KVe,c],[Bh,{...p,ref:u,isInvalid:c.isInvalid}],[F6,b],[Qd,{...h,isPressed:c.isOpen}],[ZB,{...m,ref:d,elementType:"span"}],[Mh,v],[M6,c],[qVe,{trigger:"DatePicker",triggerRef:u,placement:"bottom start",style:{"--trigger-width":x}}],[B6,y],[TC,{slots:{description:$,errorMessage:C}}],[WB,T]]},g.createElement("div",{...P,...j,...O,ref:r,slot:t.slot||void 0,"data-focus-within":A||void 0,"data-invalid":c.isInvalid||void 0,"data-focus-visible":I||void 0,"data-disabled":t.isDisabled||void 0,"data-open":c.isOpen||void 0}))}),e8e=g.forwardRef(function(t,r){[t,r]=ao(t,r,g4);let{children:o,level:i=3,className:s,...l}=t,c=`h${i}`;return g.createElement(c,{...l,ref:r,className:s??"react-aria-Heading"},o)}),t8e=g.createContext(null),r8e=g.createContext(null),a8e=g.forwardRef(function(t,r){[t,r]=ao(t,r,t8e);let{validationBehavior:o}=Od(k6)||{};var i,s;let l=(s=(i=t.validationBehavior)!==null&&i!==void 0?i:o)!==null&&s!==void 0?s:"native",{locale:c}=kr(),u=Q7e({...t,locale:c,validationBehavior:l}),d=g.useRef(null),[f,p]=vL(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:m,groupProps:b,inputProps:h,incrementButtonProps:y,decrementButtonProps:v,descriptionProps:$,errorMessageProps:C,...T}=oVe({...$L(t),label:p,validationBehavior:l},u,d),x=ro({...t,values:{state:u,isDisabled:t.isDisabled||!1,isInvalid:T.isInvalid||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-NumberField"}),w=Yt(t);return delete w.id,g.createElement(Ld,{values:[[r8e,u],[Bh,b],[EC,{...h,ref:d}],[ZB,{...m,ref:f}],[Qd,{slots:{increment:y,decrement:v}}],[TC,{slots:{description:$,errorMessage:C}}],[WB,T]]},g.createElement("div",{...w,...x,ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-required":t.isRequired||void 0,"data-invalid":T.isInvalid||void 0}),t.name&&g.createElement("input",{type:"hidden",name:t.name,value:isNaN(u.numberValue)?"":u.numberValue}))}),n8e=Sl("",{variants:{variant:{default:["flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","data-[focus-within]:outline-none data-[focus-within]:ring-2 data-[focus-within]:ring-ring data-[focus-within]:ring-offset-2","data-[disabled]:opacity-50"],ghost:""}},defaultVariants:{variant:"default"}});function V6({className:e,variant:t,...r}){return D.jsx(PC,{className:nh(e,o=>ze(n8e({variant:t}),o)),...r})}const o8e=Sl(["inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ","data-[focus-visible]:outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-offset-2","focus-visible:outline-none"],{variants:{variant:{default:"bg-primary text-primary-foreground data-[hovered]:bg-primary/90",destructive:"bg-destructive text-destructive-foreground data-[hovered]:bg-destructive/90",outline:"border border-input bg-background data-[hovered]:bg-accent data-[hovered]:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground data-[hovered]:bg-secondary/80",ghost:"data-[hovered]:bg-accent data-[hovered]:text-accent-foreground",link:"text-primary underline-offset-4 data-[hovered]:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),i8e=({className:e,variant:t,size:r,...o})=>D.jsx(Nh,{className:nh(e,i=>ze(o8e({variant:t,size:r,className:i}))),...o}),G6=a8e;function z6({className:e,...t}){return D.jsx(zB,{className:nh(e,r=>ze("placeholder:text-muted-foreground w-fit min-w-0 flex-1 border-r border-transparent bg-transparent pr-2 outline outline-0 [&::-webkit-search-cancel-button]:hidden",r)),...t})}function Z6({className:e,...t}){return D.jsxs("div",{className:ze("absolute right-0 flex h-full flex-col border-l",e),...t,children:[D.jsx(W6,{slot:"increment",children:D.jsx(r9e,{"aria-hidden":!0,className:"size-4"})}),D.jsx("div",{className:"border-b"}),D.jsx(W6,{slot:"decrement",children:D.jsx(R$,{"aria-hidden":!0,className:"size-4"})})]})}function W6({className:e,...t}){return D.jsx(i8e,{className:nh(e,r=>ze("text-muted-foreground w-auto grow rounded-none px-0.5",r)),variant:"ghost",size:"icon",...t})}const s8e=e=>{const{data:t,schema:r,id:o,enabled:i,uischema:s,path:l,handleChange:c}=e,u=r.multipleOf?-Math.log10(r.multipleOf):void 0;return console.log("currency",r.currency),D.jsx(G6,{id:o,autoFocus:s.options&&s.options.focus,value:t,onChange:d=>c(l,d),minValue:r.exclusiveMinimum??r.minimum??void 0,maxValue:r.exclusiveMaximum??r.maximum??void 0,isDisabled:!i,formatOptions:{style:"currency",currency:r.currency,signDisplay:"auto",maximumFractionDigits:u},children:D.jsxs(V6,{children:[D.jsx(z6,{}),D.jsx(Z6,{})]})})},l8e=Ye(3,it(yp,Er(e=>!Ae(e)&&Object.prototype.hasOwnProperty.call(e,"currency")))),c8e=Qt(Tr(s8e));function u8e(e,t=globalThis==null?void 0:globalThis.document){const r=Jn(e);F.useEffect(()=>{const o=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var d8e="DismissableLayer",kC="dismissableLayer.update",f8e="dismissableLayer.pointerDownOutside",p8e="dismissableLayer.focusOutside",q6,U6=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H6=F.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,d=F.useContext(U6),[f,p]=F.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=F.useState({}),h=$r(t,P=>p(P)),y=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),$=y.indexOf(v),C=f?y.indexOf(f):-1,T=d.layersWithOutsidePointerEventsDisabled.size>0,x=C>=$,w=h8e(P=>{const A=P.target,I=[...d.branches].some(O=>O.contains(A));!x||I||(i==null||i(P),l==null||l(P),P.defaultPrevented||c==null||c())},m),S=b8e(P=>{const A=P.target;[...d.branches].some(O=>O.contains(A))||(s==null||s(P),l==null||l(P),P.defaultPrevented||c==null||c())},m);return u8e(P=>{C===d.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},m),F.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(q6=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),X6(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=q6)}},[f,m,r,d]),F.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),X6())},[f,d]),F.useEffect(()=>{const P=()=>b({});return document.addEventListener(kC,P),()=>document.removeEventListener(kC,P)},[]),D.jsx(Ot.div,{...u,ref:h,style:{pointerEvents:T?x?"auto":"none":void 0,...e.style},onFocusCapture:Gt(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Gt(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Gt(e.onPointerDownCapture,w.onPointerDownCapture)})});H6.displayName=d8e;var m8e="DismissableLayerBranch",g8e=F.forwardRef((e,t)=>{const r=F.useContext(U6),o=F.useRef(null),i=$r(t,o);return F.useEffect(()=>{const s=o.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),D.jsx(Ot.div,{...e,ref:i})});g8e.displayName=m8e;function h8e(e,t=globalThis==null?void 0:globalThis.document){const r=Jn(e),o=F.useRef(!1),i=F.useRef(()=>{});return F.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let u=function(){Y6(f8e,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);o.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function b8e(e,t=globalThis==null?void 0:globalThis.document){const r=Jn(e),o=F.useRef(!1);return F.useEffect(()=>{const i=s=>{s.target&&!o.current&&Y6(p8e,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function X6(){const e=new CustomEvent(kC);document.dispatchEvent(e)}function Y6(e,t,r,{discrete:o}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?hOe(i,s):i.dispatchEvent(s)}var NC=0;function y8e(){F.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J6()),document.body.insertAdjacentElement("beforeend",e[1]??J6()),NC++,()=>{NC===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),NC--}},[])}function J6(){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 LC="focusScope.autoFocusOnMount",OC="focusScope.autoFocusOnUnmount",K6={bubbles:!1,cancelable:!0},v8e="FocusScope",Q6=F.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,u]=F.useState(null),d=Jn(i),f=Jn(s),p=F.useRef(null),m=$r(t,y=>u(y)),b=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(o){let y=function(T){if(b.paused||!c)return;const x=T.target;c.contains(x)?p.current=x:oi(p.current,{select:!0})},v=function(T){if(b.paused||!c)return;const x=T.relatedTarget;x!==null&&(c.contains(x)||oi(p.current,{select:!0}))},$=function(T){if(document.activeElement===document.body)for(const w of T)w.removedNodes.length>0&&oi(c)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const C=new MutationObserver($);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),C.disconnect()}}},[o,c,b.paused]),F.useEffect(()=>{if(c){rM.add(b);const y=document.activeElement;if(!c.contains(y)){const $=new CustomEvent(LC,K6);c.addEventListener(LC,d),c.dispatchEvent($),$.defaultPrevented||($8e(E8e(eM(c)),{select:!0}),document.activeElement===y&&oi(c))}return()=>{c.removeEventListener(LC,d),setTimeout(()=>{const $=new CustomEvent(OC,K6);c.addEventListener(OC,f),c.dispatchEvent($),$.defaultPrevented||oi(y??document.body,{select:!0}),c.removeEventListener(OC,f),rM.remove(b)},0)}}},[c,d,f,b]);const h=F.useCallback(y=>{if(!r&&!o||b.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,$=document.activeElement;if(v&&$){const C=y.currentTarget,[T,x]=C8e(C);T&&x?!y.shiftKey&&$===x?(y.preventDefault(),r&&oi(T,{select:!0})):y.shiftKey&&$===T&&(y.preventDefault(),r&&oi(x,{select:!0})):$===C&&y.preventDefault()}},[r,o,b.paused]);return D.jsx(Ot.div,{tabIndex:-1,...l,ref:m,onKeyDown:h})});Q6.displayName=v8e;function $8e(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(oi(o,{select:t}),document.activeElement!==r)return}function C8e(e){const t=eM(e),r=tM(t,e),o=tM(t.reverse(),e);return[r,o]}function eM(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function tM(e,t){for(const r of e)if(!x8e(r,{upTo:t}))return r}function x8e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function w8e(e){return e instanceof HTMLInputElement&&"select"in e}function oi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&w8e(e)&&t&&e.select()}}var rM=A8e();function A8e(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=aM(e,t),e.unshift(t)},remove(t){var r;e=aM(e,t),(r=e[0])==null||r.resume()}}}function aM(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function E8e(e){return e.filter(t=>t.tagName!=="A")}var T8e="Arrow",nM=F.forwardRef((e,t)=>{const{children:r,width:o=10,height:i=5,...s}=e;return D.jsx(Ot.svg,{...s,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:D.jsx("polygon",{points:"0,0 30,0 15,10"})})});nM.displayName=T8e;var _8e=nM,BC="Popper",[oM,iM]=Jo(BC),[D8e,sM]=oM(BC),lM=e=>{const{__scopePopper:t,children:r}=e,[o,i]=F.useState(null);return D.jsx(D8e,{scope:t,anchor:o,onAnchorChange:i,children:r})};lM.displayName=BC;var cM="PopperAnchor",uM=F.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...i}=e,s=sM(cM,r),l=F.useRef(null),c=$r(t,l);return F.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:D.jsx(Ot.div,{...i,ref:c})});uM.displayName=cM;var MC="PopperContent",[S8e,P8e]=oM(MC),dM=F.forwardRef((e,t)=>{var z,R,W,Q,fe,H;const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:b="optimized",onPlaced:h,...y}=e,v=sM(MC,r),[$,C]=F.useState(null),T=$r(t,je=>C(je)),[x,w]=F.useState(null),S=fk(x),P=(S==null?void 0:S.width)??0,A=(S==null?void 0:S.height)??0,I=o+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(d)?d:[d],V=j.length>0,k={padding:O,boundary:j.filter(j8e),altBoundary:V},{refs:Z,floatingStyles:U,placement:X,isPositioned:ee,middlewareData:te}=$n.useFloating({strategy:"fixed",placement:I,whileElementsMounted:(...je)=>$n.autoUpdate(...je,{animationFrame:b==="always"}),elements:{reference:v.anchor},middleware:[$n.offset({mainAxis:i+A,alignmentAxis:l}),u&&$n.shift({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?$n.limitShift():void 0,...k}),u&&$n.flip({...k}),$n.size({...k,apply:({elements:je,rects:ft,availableWidth:Et,availableHeight:Cr})=>{const{width:Nr,height:sr}=ft.reference,Ft=je.floating.style;Ft.setProperty("--radix-popper-available-width",`${Et}px`),Ft.setProperty("--radix-popper-available-height",`${Cr}px`),Ft.setProperty("--radix-popper-anchor-width",`${Nr}px`),Ft.setProperty("--radix-popper-anchor-height",`${sr}px`)}}),x&&$n.arrow({element:x,padding:c}),k8e({arrowWidth:P,arrowHeight:A}),m&&$n.hide({strategy:"referenceHidden",...k})]}),[de,G]=mM(X),N=Jn(h);Ko(()=>{ee&&(N==null||N())},[ee,N]);const B=(z=te.arrow)==null?void 0:z.x,L=(R=te.arrow)==null?void 0:R.y,E=((W=te.arrow)==null?void 0:W.centerOffset)!==0,[_,M]=F.useState();return Ko(()=>{$&&M(window.getComputedStyle($).zIndex)},[$]),D.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:ee?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_,"--radix-popper-transform-origin":[(Q=te.transformOrigin)==null?void 0:Q.x,(fe=te.transformOrigin)==null?void 0:fe.y].join(" "),...((H=te.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:D.jsx(S8e,{scope:r,placedSide:de,onArrowChange:w,arrowX:B,arrowY:L,shouldHideArrow:E,children:D.jsx(Ot.div,{"data-side":de,"data-align":G,...y,ref:T,style:{...y.style,animation:ee?void 0:"none"}})})})});dM.displayName=MC;var fM="PopperArrow",I8e={top:"bottom",right:"left",bottom:"top",left:"right"},pM=F.forwardRef(function(t,r){const{__scopePopper:o,...i}=t,s=P8e(fM,o),l=I8e[s.placedSide];return D.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:D.jsx(_8e,{...i,ref:r,style:{...i.style,display:"block"}})})});pM.displayName=fM;function j8e(e){return e!==null}var k8e=e=>({name:"transformOrigin",options:e,fn(t){var v,$,C;const{placement:r,rects:o,middlewareData:i}=t,l=((v=i.arrow)==null?void 0:v.centerOffset)!==0,c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,f]=mM(r),p={start:"0%",center:"50%",end:"100%"}[f],m=((($=i.arrow)==null?void 0:$.x)??0)+c/2,b=(((C=i.arrow)==null?void 0:C.y)??0)+u/2;let h="",y="";return d==="bottom"?(h=l?p:`${m}px`,y=`${-u}px`):d==="top"?(h=l?p:`${m}px`,y=`${o.floating.height+u}px`):d==="right"?(h=`${-u}px`,y=l?p:`${b}px`):d==="left"&&(h=`${o.floating.width+u}px`,y=l?p:`${b}px`),{data:{x:h,y}}}});function mM(e){const[t,r="center"]=e.split("-");return[t,r]}var N8e=lM,gM=uM,L8e=dM,O8e=pM,B8e="Portal",hM=F.forwardRef((e,t)=>{var c;const{container:r,...o}=e,[i,s]=F.useState(!1);Ko(()=>s(!0),[]);const l=r||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?bf.createPortal(D.jsx(Ot.div,{...o,ref:t}),l):null});hM.displayName=B8e;var M8e=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ql=new WeakMap,Gh=new WeakMap,zh={},FC=0,bM=function(e){return e&&(e.host||bM(e.parentNode))},F8e=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=bM(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},R8e=function(e,t,r,o){var i=F8e(t,Array.isArray(e)?e:[e]);zh[r]||(zh[r]=new WeakMap);var s=zh[r],l=[],c=new Set,u=new Set(i),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};i.forEach(d);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(m){if(c.has(m))f(m);else try{var b=m.getAttribute(o),h=b!==null&&b!=="false",y=(Ql.get(m)||0)+1,v=(s.get(m)||0)+1;Ql.set(m,y),s.set(m,v),l.push(m),y===1&&h&&Gh.set(m,!0),v===1&&m.setAttribute(r,"true"),h||m.setAttribute(o,"true")}catch($){console.error("aria-hidden: cannot operate on ",m,$)}})};return f(t),c.clear(),FC++,function(){l.forEach(function(p){var m=Ql.get(p)-1,b=s.get(p)-1;Ql.set(p,m),s.set(p,b),m||(Gh.has(p)||p.removeAttribute(o),Gh.delete(p)),b||p.removeAttribute(r)}),FC--,FC||(Ql=new WeakMap,Ql=new WeakMap,Gh=new WeakMap,zh={})}},V8e=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=M8e(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),R8e(o,i,r,"aria-hidden")):function(){return null}},Zh="right-scroll-bar-position",Wh="width-before-scroll-bar",G8e="with-scroll-bars-hidden",z8e="--removed-body-scroll-bar-size";function RC(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z8e(e,t){var r=g.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var i=r.value;i!==o&&(r.value=o,r.callback(o,i))}}}})[0];return r.callback=t,r.facade}var W8e=typeof window<"u"?F.useLayoutEffect:F.useEffect,yM=new WeakMap;function q8e(e,t){var r=Z8e(null,function(o){return e.forEach(function(i){return RC(i,o)})});return W8e(function(){var o=yM.get(r);if(o){var i=new Set(o),s=new Set(e),l=r.current;i.forEach(function(c){s.has(c)||RC(c,null)}),s.forEach(function(c){i.has(c)||RC(c,l)})}yM.set(r,e)},[e]),r}function U8e(e){return e}function H8e(e,t){t===void 0&&(t=U8e);var r=[],o=!1,i={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,o);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(o=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){o=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var u=function(){var f=l;l=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),r={push:function(f){l.push(f),d()},filter:function(f){return l=l.filter(f),r}}}};return i}function X8e(e){e===void 0&&(e={});var t=H8e(null);return t.options=mn({async:!0,ssr:!1},e),t}var vM=function(e){var t=e.sideCar,r=WL(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return F.createElement(o,mn({},r))};vM.isSideCarExport=!0;function Y8e(e,t){return e.useMedium(t),vM}var $M=X8e(),VC=function(){},qh=F.forwardRef(function(e,t){var r=F.useRef(null),o=F.useState({onScrollCapture:VC,onWheelCapture:VC,onTouchMoveCapture:VC}),i=o[0],s=o[1],l=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,b=e.noIsolation,h=e.inert,y=e.allowPinchZoom,v=e.as,$=v===void 0?"div":v,C=e.gapMode,T=WL(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=m,w=q8e([r,t]),S=mn(mn({},T),i);return F.createElement(F.Fragment,null,f&&F.createElement(x,{sideCar:$M,removeScrollBar:d,shards:p,noIsolation:b,inert:h,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:C}),l?F.cloneElement(F.Children.only(c),mn(mn({},S),{ref:w})):F.createElement($,mn({},S,{className:u,ref:w}),c))});qh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qh.classNames={fullWidth:Wh,zeroRight:Zh};var J8e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function K8e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=J8e();return t&&e.setAttribute("nonce",t),e}function Q8e(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eGe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tGe=function(){var e=0,t=null;return{add:function(r){e==0&&(t=K8e())&&(Q8e(t,r),eGe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rGe=function(){var e=tGe();return function(t,r){F.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},CM=function(){var e=rGe(),t=function(r){var o=r.styles,i=r.dynamic;return e(o,i),null};return t},aGe={left:0,top:0,right:0,gap:0},GC=function(e){return parseInt(e||"",10)||0},nGe=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[GC(r),GC(o),GC(i)]},oGe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aGe;var t=nGe(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},iGe=CM(),ec="data-scroll-locked",sGe=function(e,t,r,o){var i=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
96
+ `]))),D6e=function(t,r){var o=t.isFocused,i=t.size,s=t.theme,l=s.colors,c=s.spacing.baseUnit;return be({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},r?{}:{color:o?l.neutral60:l.neutral20,padding:c*2})},i4=function(t){var r=t.delay,o=t.offset;return ye("span",{css:Q$({animation:"".concat(_6e," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},S6e=function(t){var r=t.innerProps,o=t.isRtl,i=t.size,s=i===void 0?4:i,l=un(t,y6e);return ye("div",ve({},_t(be(be({},l),{},{innerProps:r,isRtl:o,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ye(i4,{delay:0,offset:o}),ye(i4,{delay:160,offset:!0}),ye(i4,{delay:320,offset:!o}))},P6e=function(t,r){var o=t.isDisabled,i=t.isFocused,s=t.theme,l=s.colors,c=s.borderRadius,u=s.spacing;return be({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:o?l.neutral5:l.neutral0,borderColor:o?l.neutral10:i?l.primary:l.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:i?l.primary:l.neutral30}})},I6e=function(t){var r=t.children,o=t.isDisabled,i=t.isFocused,s=t.innerRef,l=t.innerProps,c=t.menuIsOpen;return ye("div",ve({ref:s},_t(t,"control",{control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":c}),l,{"aria-disabled":o||void 0}),r)},j6e=I6e,k6e=["data"],N6e=function(t,r){var o=t.theme.spacing;return r?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},L6e=function(t){var r=t.children,o=t.cx,i=t.getStyles,s=t.getClassNames,l=t.Heading,c=t.headingProps,u=t.innerProps,d=t.label,f=t.theme,p=t.selectProps;return ye("div",ve({},_t(t,"group",{group:!0}),u),ye(l,ve({},c,{selectProps:p,theme:f,getStyles:i,getClassNames:s,cx:o}),d),ye("div",null,r))},O6e=function(t,r){var o=t.theme,i=o.colors,s=o.spacing;return be({label:"group",cursor:"default",display:"block"},r?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},B6e=function(t){var r=pN(t);r.data;var o=un(r,k6e);return ye("div",ve({},_t(t,"groupHeading",{"group-heading":!0}),o))},M6e=L6e,F6e=["innerRef","isDisabled","isHidden","inputClassName"],R6e=function(t,r){var o=t.isDisabled,i=t.value,s=t.theme,l=s.spacing,c=s.colors;return be(be({visibility:o?"hidden":"visible",transform:i?"translateZ(0)":""},V6e),r?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:c.neutral80})},EN={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},V6e={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":be({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},EN)},G6e=function(t){return be({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},EN)},z6e=function(t){var r=t.cx,o=t.value,i=pN(t),s=i.innerRef,l=i.isDisabled,c=i.isHidden,u=i.inputClassName,d=un(i,F6e);return ye("div",ve({},_t(t,"input",{"input-container":!0}),{"data-value":o||""}),ye("input",ve({className:r({input:!0},u),ref:s,style:G6e(c),disabled:l},d)))},Z6e=z6e,W6e=function(t,r){var o=t.theme,i=o.spacing,s=o.borderRadius,l=o.colors;return be({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:l.neutral10,borderRadius:s/2,margin:i.baseUnit/2})},q6e=function(t,r){var o=t.theme,i=o.borderRadius,s=o.colors,l=t.cropWithEllipsis;return be({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:i/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},U6e=function(t,r){var o=t.theme,i=o.spacing,s=o.borderRadius,l=o.colors,c=t.isFocused;return be({alignItems:"center",display:"flex"},r?{}:{borderRadius:s/2,backgroundColor:c?l.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},TN=function(t){var r=t.children,o=t.innerProps;return ye("div",o,r)},H6e=TN,X6e=TN;function Y6e(e){var t=e.children,r=e.innerProps;return ye("div",ve({role:"button"},r),t||ye(o4,{size:14}))}var J6e=function(t){var r=t.children,o=t.components,i=t.data,s=t.innerProps,l=t.isDisabled,c=t.removeProps,u=t.selectProps,d=o.Container,f=o.Label,p=o.Remove;return ye(d,{data:i,innerProps:be(be({},_t(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),s),selectProps:u},ye(f,{data:i,innerProps:be({},_t(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),ye(p,{data:i,innerProps:be(be({},_t(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},c),selectProps:u}))},K6e=J6e,Q6e=function(t,r){var o=t.isDisabled,i=t.isFocused,s=t.isSelected,l=t.theme,c=l.spacing,u=l.colors;return be({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:s?u.primary:i?u.primary25:"transparent",color:o?u.neutral20:s?u.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:s?u.primary:u.primary50}})},eMe=function(t){var r=t.children,o=t.isDisabled,i=t.isFocused,s=t.isSelected,l=t.innerRef,c=t.innerProps;return ye("div",ve({},_t(t,"option",{option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":s}),{ref:l,"aria-disabled":o},c),r)},tMe=eMe,rMe=function(t,r){var o=t.theme,i=o.spacing,s=o.colors;return be({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:s.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},aMe=function(t){var r=t.children,o=t.innerProps;return ye("div",ve({},_t(t,"placeholder",{placeholder:!0}),o),r)},nMe=aMe,oMe=function(t,r){var o=t.isDisabled,i=t.theme,s=i.spacing,l=i.colors;return be({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:o?l.neutral40:l.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},iMe=function(t){var r=t.children,o=t.isDisabled,i=t.innerProps;return ye("div",ve({},_t(t,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),i),r)},sMe=iMe,eo={ClearIndicator:A6e,Control:j6e,DropdownIndicator:x6e,DownChevron:wN,CrossIcon:o4,Group:M6e,GroupHeading:B6e,IndicatorsContainer:h6e,IndicatorSeparator:T6e,Input:Z6e,LoadingIndicator:S6e,Menu:r6e,MenuList:n6e,MenuPortal:u6e,LoadingMessage:l6e,NoOptionsMessage:s6e,MultiValue:K6e,MultiValueContainer:H6e,MultiValueLabel:X6e,MultiValueRemove:Y6e,Option:tMe,Placeholder:nMe,SelectContainer:f6e,SingleValue:sMe,ValueContainer:m6e},lMe=function(t){return be(be({},eo),t.components)},_N=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function cMe(e,t){return!!(e===t||_N(e)&&_N(t))}function uMe(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!cMe(e[r],t[r]))return!1;return!0}function dMe(e,t){t===void 0&&(t=uMe);var r=null;function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(r&&r.lastThis===this&&t(i,r.lastArgs))return r.lastResult;var l=e.apply(this,i);return r={lastResult:l,lastArgs:i,lastThis:this},l}return o.clear=function(){r=null},o}function fMe(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var pMe=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:fMe},mMe=function(t){return ye("span",ve({css:pMe},t))},DN=mMe,gMe={guidance:function(t){var r=t.isSearchable,o=t.isMulti,i=t.tabSelectsValue,s=t.context,l=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,o=t.label,i=o===void 0?"":o,s=t.labels,l=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return l?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var r=t.context,o=t.focused,i=t.options,s=t.label,l=s===void 0?"":s,c=t.selectValue,u=t.isDisabled,d=t.isSelected,f=t.isAppleDevice,p=function(y,v){return y&&y.length?"".concat(y.indexOf(v)+1," of ").concat(y.length):""};if(r==="value"&&c)return"value ".concat(l," focused, ").concat(p(c,o),".");if(r==="menu"&&f){var m=u?" disabled":"",b="".concat(d?" selected":"").concat(m);return"".concat(l).concat(b,", ").concat(p(i,o),".")}return""},onFilter:function(t){var r=t.inputValue,o=t.resultsMessage;return"".concat(o).concat(r?" for search term "+r:"",".")}},hMe=function(t){var r=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,s=t.focusableOptions,l=t.isFocused,c=t.selectValue,u=t.selectProps,d=t.id,f=t.isAppleDevice,p=u.ariaLiveMessages,m=u.getOptionLabel,b=u.inputValue,h=u.isMulti,y=u.isOptionDisabled,v=u.isSearchable,$=u.menuIsOpen,C=u.options,T=u.screenReaderStatus,x=u.tabSelectsValue,w=u.isLoading,S=u["aria-label"],P=u["aria-live"],A=g.useMemo(function(){return be(be({},gMe),p||{})},[p]),I=g.useMemo(function(){var U="";if(r&&A.onChange){var X=r.option,ee=r.options,te=r.removedValue,de=r.removedValues,G=r.value,N=function(R){return Array.isArray(R)?null:R},B=te||X||N(G),L=B?m(B):"",E=ee||de||void 0,_=E?E.map(m):[],M=be({isDisabled:B&&y(B,c),label:L,labels:_},r);U=A.onChange(M)}return U},[r,A,y,c,m]),O=g.useMemo(function(){var U="",X=o||i,ee=!!(o&&c&&c.includes(o));if(X&&A.onFocus){var te={focused:X,label:m(X),isDisabled:y(X,c),isSelected:ee,options:s,context:X===o?"menu":"value",selectValue:c,isAppleDevice:f};U=A.onFocus(te)}return U},[o,i,m,y,A,s,c,f]),j=g.useMemo(function(){var U="";if($&&C.length&&!w&&A.onFilter){var X=T({count:s.length});U=A.onFilter({inputValue:b,resultsMessage:X})}return U},[s,b,$,A,C,T,w]),V=(r==null?void 0:r.action)==="initial-input-focus",k=g.useMemo(function(){var U="";if(A.guidance){var X=i?"value":$?"menu":"input";U=A.guidance({"aria-label":S,context:X,isDisabled:o&&y(o,c),isMulti:h,isSearchable:v,tabSelectsValue:x,isInitialFocus:V})}return U},[S,o,i,h,y,v,$,A,c,x,V]),Z=ye(g.Fragment,null,ye("span",{id:"aria-selection"},I),ye("span",{id:"aria-focused"},O),ye("span",{id:"aria-results"},j),ye("span",{id:"aria-guidance"},k));return ye(g.Fragment,null,ye(DN,{id:d},V&&Z),ye(DN,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!V&&Z))},bMe=hMe,s4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],yMe=new RegExp("["+s4.map(function(e){return e.letters}).join("")+"]","g"),SN={},l4=0;l4<s4.length;l4++)for(var c4=s4[l4],u4=0;u4<c4.letters.length;u4++)SN[c4.letters[u4]]=c4.base;var PN=function(t){return t.replace(yMe,function(r){return SN[r]})},vMe=dMe(PN),IN=function(t){return t.replace(/^\s+|\s+$/g,"")},$Me=function(t){return"".concat(t.label," ").concat(t.value)},CMe=function(t){return function(r,o){if(r.data.__isNew__)return!0;var i=be({ignoreCase:!0,ignoreAccents:!0,stringify:$Me,trim:!0,matchFrom:"any"},t),s=i.ignoreCase,l=i.ignoreAccents,c=i.stringify,u=i.trim,d=i.matchFrom,f=u?IN(o):o,p=u?IN(c(r)):c(r);return s&&(f=f.toLowerCase(),p=p.toLowerCase()),l&&(f=vMe(f),p=PN(p)),d==="start"?p.substr(0,f.length)===f:p.indexOf(f)>-1}},xMe=["innerRef"];function wMe(e){var t=e.innerRef,r=un(e,xMe),o=HBe(r,"onExited","in","enter","exit","appear");return ye("input",ve({ref:t},o,{css:Q$({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var AMe=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function EMe(e){var t=e.isEnabled,r=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,s=e.onTopLeave,l=g.useRef(!1),c=g.useRef(!1),u=g.useRef(0),d=g.useRef(null),f=g.useCallback(function(v,$){if(d.current!==null){var C=d.current,T=C.scrollTop,x=C.scrollHeight,w=C.clientHeight,S=d.current,P=$>0,A=x-w-T,I=!1;A>$&&l.current&&(o&&o(v),l.current=!1),P&&c.current&&(s&&s(v),c.current=!1),P&&$>A?(r&&!l.current&&r(v),S.scrollTop=x,I=!0,l.current=!0):!P&&-$>T&&(i&&!c.current&&i(v),S.scrollTop=0,I=!0,c.current=!0),I&&AMe(v)}},[r,o,i,s]),p=g.useCallback(function(v){f(v,v.deltaY)},[f]),m=g.useCallback(function(v){u.current=v.changedTouches[0].clientY},[]),b=g.useCallback(function(v){var $=u.current-v.changedTouches[0].clientY;f(v,$)},[f]),h=g.useCallback(function(v){if(v){var $=WBe?{passive:!1}:!1;v.addEventListener("wheel",p,$),v.addEventListener("touchstart",m,$),v.addEventListener("touchmove",b,$)}},[b,m,p]),y=g.useCallback(function(v){v&&(v.removeEventListener("wheel",p,!1),v.removeEventListener("touchstart",m,!1),v.removeEventListener("touchmove",b,!1))},[b,m,p]);return g.useEffect(function(){if(t){var v=d.current;return h(v),function(){y(v)}}},[t,h,y]),function(v){d.current=v}}var jN=["boxSizing","height","overflow","paddingRight","position"],kN={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function NN(e){e.cancelable&&e.preventDefault()}function LN(e){e.stopPropagation()}function ON(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function BN(){return"ontouchstart"in window||navigator.maxTouchPoints}var MN=!!(typeof window<"u"&&window.document&&window.document.createElement),Id=0,Bl={capture:!1,passive:!1};function TMe(e){var t=e.isEnabled,r=e.accountForScrollbars,o=r===void 0?!0:r,i=g.useRef({}),s=g.useRef(null),l=g.useCallback(function(u){if(MN){var d=document.body,f=d&&d.style;if(o&&jN.forEach(function(h){var y=f&&f[h];i.current[h]=y}),o&&Id<1){var p=parseInt(i.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,b=window.innerWidth-m+p||0;Object.keys(kN).forEach(function(h){var y=kN[h];f&&(f[h]=y)}),f&&(f.paddingRight="".concat(b,"px"))}d&&BN()&&(d.addEventListener("touchmove",NN,Bl),u&&(u.addEventListener("touchstart",ON,Bl),u.addEventListener("touchmove",LN,Bl))),Id+=1}},[o]),c=g.useCallback(function(u){if(MN){var d=document.body,f=d&&d.style;Id=Math.max(Id-1,0),o&&Id<1&&jN.forEach(function(p){var m=i.current[p];f&&(f[p]=m)}),d&&BN()&&(d.removeEventListener("touchmove",NN,Bl),u&&(u.removeEventListener("touchstart",ON,Bl),u.removeEventListener("touchmove",LN,Bl)))}},[o]);return g.useEffect(function(){if(t){var u=s.current;return l(u),function(){c(u)}}},[t,l,c]),function(u){s.current=u}}function _Me(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var DMe=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},SMe=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:_Me};function PMe(e){var t=e.children,r=e.lockEnabled,o=e.captureEnabled,i=o===void 0?!0:o,s=e.onBottomArrive,l=e.onBottomLeave,c=e.onTopArrive,u=e.onTopLeave,d=EMe({isEnabled:i,onBottomArrive:s,onBottomLeave:l,onTopArrive:c,onTopLeave:u}),f=TMe({isEnabled:r}),p=function(b){d(b),f(b)};return ye(g.Fragment,null,r&&ye("div",{onClick:DMe,css:SMe}),t(p))}function IMe(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var jMe=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:IMe},kMe=function(t){var r=t.name,o=t.onFocus;return ye("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:jMe,value:"",onChange:function(){}})},NMe=kMe;function d4(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function LMe(){return d4(/^iPhone/i)}function FN(){return d4(/^Mac/i)}function OMe(){return d4(/^iPad/i)||FN()&&navigator.maxTouchPoints>1}function BMe(){return LMe()||OMe()}function MMe(){return FN()||BMe()}var FMe=function(t){return t.label},RMe=function(t){return t.label},VMe=function(t){return t.value},GMe=function(t){return!!t.isDisabled},zMe={clearIndicator:w6e,container:d6e,control:P6e,dropdownIndicator:C6e,group:N6e,groupHeading:O6e,indicatorsContainer:g6e,indicatorSeparator:E6e,input:R6e,loadingIndicator:D6e,loadingMessage:i6e,menu:QBe,menuList:a6e,menuPortal:c6e,multiValue:W6e,multiValueLabel:q6e,multiValueRemove:U6e,noOptionsMessage:o6e,option:Q6e,placeholder:rMe,singleValue:oMe,valueContainer:p6e},ZMe={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},WMe=4,RN=4,qMe=38,UMe=RN*2,HMe={baseUnit:RN,controlHeight:qMe,menuGutter:UMe},f4={borderRadius:WMe,colors:ZMe,spacing:HMe},XMe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:hN(),captureMenuScroll:!hN(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:CMe(),formatGroupLabel:FMe,getOptionLabel:RMe,getOptionValue:VMe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:GMe,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!zBe(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function VN(e,t,r,o){var i=qN(e,t,r),s=UN(e,t,r),l=WN(e,t),c=Ug(e,t);return{type:"option",data:t,isDisabled:i,isSelected:s,label:l,value:c,index:o}}function qg(e,t){return e.options.map(function(r,o){if("options"in r){var i=r.options.map(function(l,c){return VN(e,l,t,c)}).filter(function(l){return ZN(e,l)});return i.length>0?{type:"group",data:r,options:i,index:o}:void 0}var s=VN(e,r,t,o);return ZN(e,s)?s:void 0}).filter(qBe)}function GN(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,z$(r.options.map(function(o){return o.data}))):t.push(r.data),t},[])}function zN(e,t){return e.reduce(function(r,o){return o.type==="group"?r.push.apply(r,z$(o.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(o.index,"-").concat(i.index)}}))):r.push({data:o.data,id:"".concat(t,"-").concat(o.index)}),r},[])}function YMe(e,t){return GN(qg(e,t))}function ZN(e,t){var r=e.inputValue,o=r===void 0?"":r,i=t.data,s=t.isSelected,l=t.label,c=t.value;return(!XN(e)||!s)&&HN(e,{label:l,value:c,data:i},o)}function JMe(e,t){var r=e.focusedValue,o=e.selectValue,i=o.indexOf(r);if(i>-1){var s=t.indexOf(r);if(s>-1)return r;if(i<t.length)return t[i]}return null}function KMe(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var p4=function(t,r){var o,i=(o=t.find(function(s){return s.data===r}))===null||o===void 0?void 0:o.id;return i||null},WN=function(t,r){return t.getOptionLabel(r)},Ug=function(t,r){return t.getOptionValue(r)};function qN(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function UN(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var o=Ug(e,t);return r.some(function(i){return Ug(e,i)===o})}function HN(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var XN=function(t){var r=t.hideSelectedOptions,o=t.isMulti;return r===void 0?o:r},QMe=1,m4=function(e){g9e(r,e);var t=y9e(r);function r(o){var i;if(p9e(this,r),i=t.call(this,o),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=MMe(),i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,d){var f=i.props,p=f.onChange,m=f.name;d.name=m,i.ariaOnChange(u,d),p(u,d)},i.setValue=function(u,d,f){var p=i.props,m=p.closeMenuOnSelect,b=p.isMulti,h=p.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:h}),m&&(i.setState({inputIsHiddenAfterUpdate:!b}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:d,option:f})},i.selectOption=function(u){var d=i.props,f=d.blurInputOnSelect,p=d.isMulti,m=d.name,b=i.state.selectValue,h=p&&i.isOptionSelected(u,b),y=i.isOptionDisabled(u,b);if(h){var v=i.getOptionValue(u);i.setValue(b.filter(function($){return i.getOptionValue($)!==v}),"deselect-option",u)}else if(!y)p?i.setValue([].concat(z$(b),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:m});return}f&&i.blurInput()},i.removeValue=function(u){var d=i.props.isMulti,f=i.state.selectValue,p=i.getOptionValue(u),m=f.filter(function(h){return i.getOptionValue(h)!==p}),b=Wg(d,m,m[0]||null);i.onChange(b,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(Wg(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,d=i.state.selectValue,f=d[d.length-1],p=d.slice(0,d.length-1),m=Wg(u,p,p[0]||null);f&&i.onChange(m,{action:"pop-value",removedValue:f})},i.getFocusedOptionId=function(u){return p4(i.state.focusableOptionsWithIds,u)},i.getFocusableOptionsWithIds=function(){return zN(qg(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return BBe.apply(void 0,[i.props.classNamePrefix].concat(d))},i.getOptionLabel=function(u){return WN(i.props,u)},i.getOptionValue=function(u){return Ug(i.props,u)},i.getStyles=function(u,d){var f=i.props.unstyled,p=zMe[u](d,f);p.boxSizing="border-box";var m=i.props.styles[u];return m?m(p,d):p},i.getClassNames=function(u,d){var f,p;return(f=(p=i.props.classNames)[u])===null||f===void 0?void 0:f.call(p,d)},i.getElementId=function(u){return"".concat(i.state.instancePrefix,"-").concat(u)},i.getComponents=function(){return lMe(i.props)},i.buildCategorizedOptions=function(){return qg(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return GN(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(u,d){i.setState({ariaSelection:be({value:u},d)})},i.onMenuMouseDown=function(u){u.button===0&&(u.stopPropagation(),u.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(u){i.blockOptionHover=!1},i.onControlMouseDown=function(u){if(!u.defaultPrevented){var d=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&i.onMenuClose():d&&i.openMenu("first"):(d&&(i.openAfterFocus=!0),i.focusInput()),u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&u.preventDefault()}},i.onDropdownIndicatorMouseDown=function(u){if(!(u&&u.type==="mousedown"&&u.button!==0)&&!i.props.isDisabled){var d=i.props,f=d.isMulti,p=d.menuIsOpen;i.focusInput(),p?(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()):i.openMenu("first"),u.preventDefault()}},i.onClearIndicatorMouseDown=function(u){u&&u.type==="mousedown"&&u.button!==0||(i.clearValue(),u.preventDefault(),i.openAfterFocus=!1,u.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(u){typeof i.props.closeMenuOnScroll=="boolean"?u.target instanceof HTMLElement&&Vg(u.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(u)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(u){var d=u.touches,f=d&&d.item(0);f&&(i.initialTouchX=f.clientX,i.initialTouchY=f.clientY,i.userIsDragging=!1)},i.onTouchMove=function(u){var d=u.touches,f=d&&d.item(0);if(f){var p=Math.abs(f.clientX-i.initialTouchX),m=Math.abs(f.clientY-i.initialTouchY),b=5;i.userIsDragging=p>b||m>b}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var d=i.props.inputValue,f=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(f,{action:"input-change",prevInputValue:d}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var d=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:d}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){if(!(i.blockOptionHover||i.state.focusedOption===u)){var d=i.getFocusableOptions(),f=d.indexOf(u);i.setState({focusedOption:u,focusedOptionId:f>-1?i.getFocusedOptionId(u):null})}},i.shouldHideSelectedOptions=function(){return XN(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var d=i.props,f=d.isMulti,p=d.backspaceRemovesValue,m=d.escapeClearsValue,b=d.inputValue,h=d.isClearable,y=d.isDisabled,v=d.menuIsOpen,$=d.onKeyDown,C=d.tabSelectsValue,T=d.openMenuOnFocus,x=i.state,w=x.focusedOption,S=x.focusedValue,P=x.selectValue;if(!y&&!(typeof $=="function"&&($(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!f||b)return;i.focusValue("previous");break;case"ArrowRight":if(!f||b)return;i.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(S)i.removeValue(S);else{if(!p)return;f?i.popValue():h&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!v||!C||!w||T&&i.isOptionSelected(w,P))return;i.selectOption(w);break;case"Enter":if(u.keyCode===229)break;if(v){if(!w||i.isComposing)return;i.selectOption(w);break}return;case"Escape":v?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:b}),i.onMenuClose()):h&&m&&i.clearValue();break;case" ":if(b)return;if(!v){i.openMenu("first");break}if(!w)return;i.selectOption(w);break;case"ArrowUp":v?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":v?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!v)return;i.focusOption("pageup");break;case"PageDown":if(!v)return;i.focusOption("pagedown");break;case"Home":if(!v)return;i.focusOption("first");break;case"End":if(!v)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++QMe),i.state.selectValue=fN(o.value),o.menuIsOpen&&i.state.selectValue.length){var s=i.getFocusableOptionsWithIds(),l=i.buildFocusableOptions(),c=l.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=s,i.state.focusedOption=l[c],i.state.focusedOptionId=p4(s,l[c])}return i}return m9e(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&gN(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var s=this.props,l=s.isDisabled,c=s.menuIsOpen,u=this.state.isFocused;(u&&!l&&i.isDisabled||u&&c&&!i.menuIsOpen)&&this.focusInput(),u&&l&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!l&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(gN(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,s){this.props.onInputChange(i,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var s=this,l=this.state,c=l.selectValue,u=l.isFocused,d=this.buildFocusableOptions(),f=i==="first"?0:d.length-1;if(!this.props.isMulti){var p=d.indexOf(c[0]);p>-1&&(f=p)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[f],focusedOptionId:this.getFocusedOptionId(d[f])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(i){var s=this.state,l=s.selectValue,c=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=l.indexOf(c);c||(u=-1);var d=l.length-1,f=-1;if(l.length){switch(i){case"previous":u===0?f=0:u===-1?f=d:f=u-1;break;case"next":u>-1&&u<d&&(f=u+1);break}this.setState({inputIsHidden:f!==-1,focusedValue:l[f]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,l=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var u=0,d=c.indexOf(l);l||(d=-1),i==="up"?u=d>0?d-1:c.length-1:i==="down"?u=(d+1)%c.length:i==="pageup"?(u=d-s,u<0&&(u=0)):i==="pagedown"?(u=d+s,u>c.length-1&&(u=c.length-1)):i==="last"&&(u=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(f4):be(be({},f4),this.props.theme):f4}},{key:"getCommonProps",value:function(){var i=this.clearValue,s=this.cx,l=this.getStyles,c=this.getClassNames,u=this.getValue,d=this.selectOption,f=this.setValue,p=this.props,m=p.isMulti,b=p.isRtl,h=p.options,y=this.hasValue();return{clearValue:i,cx:s,getStyles:l,getClassNames:c,getValue:u,hasValue:y,isMulti:m,isRtl:b,options:h,selectOption:d,selectProps:p,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,s=i.isClearable,l=i.isMulti;return s===void 0?l:s}},{key:"isOptionDisabled",value:function(i,s){return qN(this.props,i,s)}},{key:"isOptionSelected",value:function(i,s){return UN(this.props,i,s)}},{key:"filterOption",value:function(i,s){return HN(this.props,i,s)}},{key:"formatOptionLabel",value:function(i,s){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(i,{context:s,inputValue:l,selectValue:c})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,s=i.isDisabled,l=i.isSearchable,c=i.inputId,u=i.inputValue,d=i.tabIndex,f=i.form,p=i.menuIsOpen,m=i.required,b=this.getComponents(),h=b.Input,y=this.state,v=y.inputIsHidden,$=y.ariaSelection,C=this.commonProps,T=c||this.getElementId("input"),x=be(be(be({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?($==null?void 0:$.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?F.createElement(h,ve({},C,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:T,innerRef:this.getInputRef,isDisabled:s,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:f,type:"text",value:u},x)):F.createElement(wMe,ve({id:T,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Rg,onFocus:this.onInputFocus,disabled:s,tabIndex:d,inputMode:"none",form:f,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,s=this.getComponents(),l=s.MultiValue,c=s.MultiValueContainer,u=s.MultiValueLabel,d=s.MultiValueRemove,f=s.SingleValue,p=s.Placeholder,m=this.commonProps,b=this.props,h=b.controlShouldRenderValue,y=b.isDisabled,v=b.isMulti,$=b.inputValue,C=b.placeholder,T=this.state,x=T.selectValue,w=T.focusedValue,S=T.isFocused;if(!this.hasValue()||!h)return $?null:F.createElement(p,ve({},m,{key:"placeholder",isDisabled:y,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),C);if(v)return x.map(function(A,I){var O=A===w,j="".concat(i.getOptionLabel(A),"-").concat(i.getOptionValue(A));return F.createElement(l,ve({},m,{components:{Container:c,Label:u,Remove:d},isFocused:O,isDisabled:y,key:j,index:I,removeProps:{onClick:function(){return i.removeValue(A)},onTouchEnd:function(){return i.removeValue(A)},onMouseDown:function(k){k.preventDefault()}},data:A}),i.formatOptionLabel(A,"value"))});if($)return null;var P=x[0];return F.createElement(f,ve({},m,{data:P,isDisabled:y}),this.formatOptionLabel(P,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),s=i.ClearIndicator,l=this.commonProps,c=this.props,u=c.isDisabled,d=c.isLoading,f=this.state.isFocused;if(!this.isClearable()||!s||u||!this.hasValue()||d)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(s,ve({},l,{innerProps:p,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),s=i.LoadingIndicator,l=this.commonProps,c=this.props,u=c.isDisabled,d=c.isLoading,f=this.state.isFocused;if(!s||!d)return null;var p={"aria-hidden":"true"};return F.createElement(s,ve({},l,{innerProps:p,isDisabled:u,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator,l=i.IndicatorSeparator;if(!s||!l)return null;var c=this.commonProps,u=this.props.isDisabled,d=this.state.isFocused;return F.createElement(l,ve({},c,{isDisabled:u,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator;if(!s)return null;var l=this.commonProps,c=this.props.isDisabled,u=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(s,ve({},l,{innerProps:d,isDisabled:c,isFocused:u}))}},{key:"renderMenu",value:function(){var i=this,s=this.getComponents(),l=s.Group,c=s.GroupHeading,u=s.Menu,d=s.MenuList,f=s.MenuPortal,p=s.LoadingMessage,m=s.NoOptionsMessage,b=s.Option,h=this.commonProps,y=this.state.focusedOption,v=this.props,$=v.captureMenuScroll,C=v.inputValue,T=v.isLoading,x=v.loadingMessage,w=v.minMenuHeight,S=v.maxMenuHeight,P=v.menuIsOpen,A=v.menuPlacement,I=v.menuPosition,O=v.menuPortalTarget,j=v.menuShouldBlockScroll,V=v.menuShouldScrollIntoView,k=v.noOptionsMessage,Z=v.onMenuScrollToTop,U=v.onMenuScrollToBottom;if(!P)return null;var X=function(L,E){var _=L.type,M=L.data,z=L.isDisabled,R=L.isSelected,W=L.label,Q=L.value,fe=y===M,H=z?void 0:function(){return i.onOptionHover(M)},je=z?void 0:function(){return i.selectOption(M)},ft="".concat(i.getElementId("option"),"-").concat(E),Et={id:ft,onClick:je,onMouseMove:H,onMouseOver:H,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:R};return F.createElement(b,ve({},h,{innerProps:Et,data:M,isDisabled:z,isSelected:R,key:ft,label:W,type:_,value:Q,isFocused:fe,innerRef:fe?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(L.data,"menu"))},ee;if(this.hasOptions())ee=this.getCategorizedOptions().map(function(B){if(B.type==="group"){var L=B.data,E=B.options,_=B.index,M="".concat(i.getElementId("group"),"-").concat(_),z="".concat(M,"-heading");return F.createElement(l,ve({},h,{key:M,data:L,options:E,Heading:c,headingProps:{id:z,data:B.data},label:i.formatGroupLabel(B.data)}),B.options.map(function(R){return X(R,"".concat(_,"-").concat(R.index))}))}else if(B.type==="option")return X(B,"".concat(B.index))});else if(T){var te=x({inputValue:C});if(te===null)return null;ee=F.createElement(p,h,te)}else{var de=k({inputValue:C});if(de===null)return null;ee=F.createElement(m,h,de)}var G={minMenuHeight:w,maxMenuHeight:S,menuPlacement:A,menuPosition:I,menuShouldScrollIntoView:V},N=F.createElement(e6e,ve({},h,G),function(B){var L=B.ref,E=B.placerProps,_=E.placement,M=E.maxHeight;return F.createElement(u,ve({},h,G,{innerRef:L,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:T,placement:_}),F.createElement(PMe,{captureEnabled:$,onTopArrive:Z,onBottomArrive:U,lockEnabled:j},function(z){return F.createElement(d,ve({},h,{innerRef:function(W){i.getMenuListRef(W),z(W)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:i.getElementId("listbox")},isLoading:T,maxHeight:M,focusedOption:y}),ee)}))});return O||I==="fixed"?F.createElement(f,ve({},h,{appendTo:O,controlElement:this.controlRef,menuPlacement:A,menuPosition:I}),N):N}},{key:"renderFormField",value:function(){var i=this,s=this.props,l=s.delimiter,c=s.isDisabled,u=s.isMulti,d=s.name,f=s.required,p=this.state.selectValue;if(f&&!this.hasValue()&&!c)return F.createElement(NMe,{name:d,onFocus:this.onValueInputFocus});if(!(!d||c))if(u)if(l){var m=p.map(function(y){return i.getOptionValue(y)}).join(l);return F.createElement("input",{name:d,type:"hidden",value:m})}else{var b=p.length>0?p.map(function(y,v){return F.createElement("input",{key:"i-".concat(v),name:d,type:"hidden",value:i.getOptionValue(y)})}):F.createElement("input",{name:d,type:"hidden",value:""});return F.createElement("div",null,b)}else{var h=p[0]?this.getOptionValue(p[0]):"";return F.createElement("input",{name:d,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,s=this.state,l=s.ariaSelection,c=s.focusedOption,u=s.focusedValue,d=s.isFocused,f=s.selectValue,p=this.getFocusableOptions();return F.createElement(bMe,ve({},i,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:c,focusedValue:u,isFocused:d,selectValue:f,focusableOptions:p,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),s=i.Control,l=i.IndicatorsContainer,c=i.SelectContainer,u=i.ValueContainer,d=this.props,f=d.className,p=d.id,m=d.isDisabled,b=d.menuIsOpen,h=this.state.isFocused,y=this.commonProps=this.getCommonProps();return F.createElement(c,ve({},y,{className:f,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:h}),this.renderLiveRegion(),F.createElement(s,ve({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:h,menuIsOpen:b}),F.createElement(u,ve({},y,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),F.createElement(l,ve({},y,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,s){var l=s.prevProps,c=s.clearFocusValueOnUpdate,u=s.inputIsHiddenAfterUpdate,d=s.ariaSelection,f=s.isFocused,p=s.prevWasFocused,m=s.instancePrefix,b=i.options,h=i.value,y=i.menuIsOpen,v=i.inputValue,$=i.isMulti,C=fN(h),T={};if(l&&(h!==l.value||b!==l.options||y!==l.menuIsOpen||v!==l.inputValue)){var x=y?YMe(i,C):[],w=y?zN(qg(i,C),"".concat(m,"-option")):[],S=c?JMe(s,C):null,P=KMe(s,x),A=p4(w,P);T={selectValue:C,focusedOption:P,focusedOptionId:A,focusableOptionsWithIds:w,focusedValue:S,clearFocusValueOnUpdate:!1}}var I=u!=null&&i!==l?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},O=d,j=f&&p;return f&&!j&&(O={value:Wg($,C,C[0]||null),options:C,action:"initial-input-focus"},j=!p),(d==null?void 0:d.action)==="initial-input-focus"&&(O=null),be(be(be({},T),I),{},{prevProps:i,ariaSelection:O,prevWasFocused:j})}}]),r}(g.Component);m4.defaultProps=XMe;var eFe=g.forwardRef(function(e,t){var r=kk(e);return F.createElement(m4,ve({ref:t},r))}),tFe=eFe;const YN={menuList:"select__menu-list"},rFe=Sl("inline-flex max-w-full items-center rounded-sm border px-2.5 py-1 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-zinc-100 dark:bg-zinc-800 text-black dark:text-white font-bold",info:"border-transparent bg-blue-50 text-blue-900 font-bold",destructive:"border-transparent bg-red-50 text-red-700 font-bold",outline:"text-foreground font-bold",success:"border-transparent bg-green-50 text-green-700 font-bold",warning:"border-transparent bg-yellow-50 text-yellow-700 font-bold"}},defaultVariants:{variant:"default"}});function aFe({className:e,variant:t,...r}){return D.jsx("div",{className:ze("max-w-full break-words",rFe({variant:t}),e),...r})}function JN(e){return D.jsxs(eo.DropdownIndicator,{...e,children:[D.jsx(R$,{className:"size-4 opacity-50","aria-label":"expand dropdown"}),D.jsx("span",{className:"sr-only",children:"expand dropdown"})]})}function KN(e){return D.jsxs(eo.ClearIndicator,{...e,children:[D.jsx(Dk,{className:"size-4 opacity-50","aria-label":"clear dropdown"}),D.jsx("span",{className:"sr-only",children:"clear dropdown"})]})}function QN(e){const t=()=>`Delete ${e.selectProps.getOptionLabel(e.data)}`,r={...e,innerProps:{...e.innerProps,"aria-label":t()}};return D.jsxs(eo.MultiValueRemove,{...r,children:[D.jsx(Dk,{className:"ml-2 size-4 text-black dark:text-white"}),D.jsx("span",{className:"sr-only",children:t()})]})}function eL(e){return D.jsx(eo.MultiValueContainer,{...e,children:D.jsx(aFe,{variant:"default",className:"max-w-full",children:e.children})})}function tL(e){const t=typeof e.children=="string"?"span":"div";return D.jsx(eo.MultiValueLabel,{...e,children:D.jsx(t,{children:e.children})})}function rL(e){return D.jsx(eo.ValueContainer,{...e,children:e.children})}function aL(e){return e.innerProps?(!("data-testid"in e.innerProps)||!e.innerProps["data-testid"])&&(e.innerProps["data-testid"]=YN.menuList):e.innerProps={"data-testid":YN.menuList},D.jsx(eo.MenuList,{...e,children:e.children})}function nL(e){return D.jsx(eo.Option,{...e})}const jd=g.forwardRef((e,t)=>D.jsx(tFe,{ref:t,unstyled:!0,components:{DropdownIndicator:JN,MultiValueRemove:QN,ClearIndicator:KN,MultiValueContainer:eL,ValueContainer:rL,MenuList:aL,Option:nL,MultiValueLabel:tL},id:e.id,placeholder:e.placeholder??"",inputId:e.id,closeMenuOnSelect:!e.isMulti,classNames:{control:({isFocused:r,isDisabled:o})=>ze(["border-input ring-offset-background shadow-xs max-h-36 w-full overflow-y-auto rounded-md border bg-transparent px-3 text-sm",r?"ring-ring ring-1":"",o?"cursor-not-allowed opacity-50":"",e.invalid?"ring-destructive ring-1":""]),valueContainer:()=>"flex flex-row flex-wrap gap-2 py-1",menu:()=>"text-sm mt-2 p-1 relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",option:({isFocused:r,isSelected:o,isDisabled:i})=>ze("relative flex w-full cursor-default select-none items-center break-words rounded-sm px-4 py-1.5 outline-none",r?"bg-accent text-accent-foreground":"",o?"bg-primary text-white":"",i?"text-zinc-400":""),multiValueLabel:()=>"dark:text-white",placeholder:()=>e.invalid?"text-destructive":"text-muted-foreground",indicatorsContainer:()=>"align-start"},...e}));jd.displayName="Autocomplete";const nFe=e=>{const{data:t,className:r,id:o,enabled:i,path:s,handleChange:l,options:c}=e,u=g.useRef(null),[d,f]=g.useState((c==null?void 0:c.find(p=>p.value===t))||null);return g.useEffect(()=>{const p=c==null?void 0:c.find(m=>m.value===t);f(p||null)},[c,s,l,t]),D.jsx(jd,{isClearable:!0,placeholder:"None",ref:u,id:o,instanceId:o,options:c,name:o,value:d,isDisabled:!i,isMulti:!1,className:r,onChange:p=>{f(p),l(s,p==null?void 0:p.value)},closeMenuOnSelect:!0})},oFe=Ye(4,it(vp,Er(e=>Object.prototype.hasOwnProperty.call(e,"constraint")))),iFe=i0(Pn(h0(nFe)));g.createContext(null),g.createContext(null),g.createContext(null),g.createContext(null),g.createContext(null);const g4=g.createContext({}),La=typeof document<"u"?g.useLayoutEffect:()=>{};function ir(e){const t=g.useRef(null);return La(()=>{t.current=e},[e]),g.useCallback((...r)=>{const o=t.current;return o==null?void 0:o(...r)},[])}function sFe(e){let[t,r]=g.useState(e),o=g.useRef(null),i=ir(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}t===l.value?i():r(l.value)});La(()=>{o.current&&i()});let s=ir(l=>{o.current=l(t),i()});return[t,s]}const Hg={prefix:String(Math.round(Math.random()*1e10)),current:0},oL=g.createContext(Hg),lFe=g.createContext(!1);let cFe=!!(typeof window<"u"&&window.document&&window.document.createElement),h4=new WeakMap;function uFe(e=!1){let t=g.useContext(oL),r=g.useRef(null);if(r.current===null&&!e){var o,i;let s=(i=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(o=i.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(s){let l=h4.get(s);l==null?h4.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==l.state&&(t.current=l.id,h4.delete(s))}r.current=++t.current}return r.current}function dFe(e){let t=g.useContext(oL);t===Hg&&!cFe&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=uFe(!!e),o=t===Hg&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function fFe(e){let t=g.useId(),[r]=g.useState(iL()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Hg.prefix}`;return e||`${o}-${t}`}const pFe=typeof g.useId=="function"?fFe:dFe;function mFe(){return!1}function gFe(){return!0}function hFe(e){return()=>{}}function iL(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(hFe,mFe,gFe):g.useContext(lFe)}let bFe=!!(typeof window<"u"&&window.document&&window.document.createElement),Ml=new Map,kd;typeof FinalizationRegistry<"u"&&(kd=new FinalizationRegistry(e=>{Ml.delete(e)}));function Zr(e){let[t,r]=g.useState(e),o=g.useRef(null),i=pFe(t),s=g.useRef(null);if(kd&&kd.register(s,i),bFe){const l=Ml.get(i);l&&!l.includes(o)?l.push(o):Ml.set(i,[o])}return La(()=>{let l=i;return()=>{kd&&kd.unregister(s),Ml.delete(l)}},[i]),g.useEffect(()=>{let l=o.current;return l&&r(l),()=>{l&&(o.current=null)}}),i}function yFe(e,t){if(e===t)return e;let r=Ml.get(e);if(r)return r.forEach(i=>i.current=t),t;let o=Ml.get(t);return o?(o.forEach(i=>i.current=e),e):t}function Xg(e=[]){let t=Zr(),[r,o]=sFe(t),i=g.useCallback(()=>{o(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,o]);return La(i,[t,i,...e]),r}function b4(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Wt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Wr=e=>e&&"window"in e&&e.window===e?e:Wt(e).defaultView||window;function vFe(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function $Fe(e){return vFe(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let CFe=!1;function Yg(){return CFe}function $t(e,t){if(!Yg())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:$Fe(r)?r=r.host:r=r.parentNode}return!1}const Ui=(e=document)=>{var t;if(!Yg())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function vt(e){return Yg()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class xFe{get currentNode(){return this._currentNode}set currentNode(t){if(!$t(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let o=t,i=t;for(this._currentNode=t;o&&o!==this.root;)if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=o,c=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});r.push(c),c.currentNode=i,this._currentSetFor.add(c),o=i=l.host}else o=o.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return $t(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.nextNode();return o&&(this.currentNode=o),o}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var o;let s;if(typeof this.filter=="function"?s=this.filter(r):!((o=this.filter)===null||o===void 0)&&o.acceptNode&&(s=this.filter.acceptNode(r)),s===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let l=this.lastChild();return l&&(this.currentNode=l),l}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,o,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const u=l.shadowRoot;if(u){const d=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var c;if(typeof this.filter=="function")return this.filter(l);if(!((c=this.filter)===null||c===void 0)&&c.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=i??null,this.whatToShow=o??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,o,this._acceptNode));const s=r.shadowRoot;if(s){const l=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function wFe(e,t,r,o){return Yg()?new xFe(e,t,r,o):e.createTreeWalker(t,r,o)}function ct(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let i in o){let s=t[i],l=o[i];typeof s=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=b4(s,l):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof l=="string"?t[i]=P$(s,l):i==="id"&&s&&l?t.id=yFe(s,l):t[i]=l!==void 0?l:s}}return t}function AFe(...e){return e.length===1&&e[0]?e[0]:t=>{for(let r of e)typeof r=="function"?r(t):r!=null&&(r.current=t)}}const EFe=new Set(["id"]),TFe=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),_Fe=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),DFe=/^(data-.*)$/;function Yt(e,t={}){let{labelable:r,isLink:o,propNames:i}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(EFe.has(l)||r&&TFe.has(l)||o&&_Fe.has(l)||i!=null&&i.has(l)||DFe.test(l))&&(s[l]=e[l]);return s}function Hi(e){if(SFe())e.focus({preventScroll:!0});else{let t=PFe(e);e.focus(),IFe(t)}}let Jg=null;function SFe(){if(Jg==null){Jg=!1;try{document.createElement("div").focus({get preventScroll(){return Jg=!0,!0}})}catch{}}return Jg}function PFe(e){let t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}function IFe(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}function Kg(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function y4(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Qo(e){let t=null;return()=>(t==null&&(t=e()),t)}const Fl=Qo(function(){return y4(/^Mac/i)}),sL=Qo(function(){return y4(/^iPhone/i)}),lL=Qo(function(){return y4(/^iPad/i)||Fl()&&navigator.maxTouchPoints>1}),Qg=Qo(function(){return sL()||lL()}),jFe=Qo(function(){return Kg(/AppleWebKit/i)&&!kFe()}),kFe=Qo(function(){return Kg(/Chrome/i)}),v4=Qo(function(){return Kg(/Android/i)}),NFe=Qo(function(){return Kg(/Firefox/i)});function Nd(e,t,r=!0){var o,i;let{metaKey:s,ctrlKey:l,altKey:c,shiftKey:u}=t;NFe()&&(!((i=window.event)===null||i===void 0||(o=i.type)===null||o===void 0)&&o.startsWith("key"))&&e.target==="_blank"&&(Fl()?s=!0:l=!0);let d=jFe()&&Fl()&&!lL()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:l,altKey:c,shiftKey:u}):new MouseEvent("click",{metaKey:s,ctrlKey:l,altKey:c,shiftKey:u,bubbles:!0,cancelable:!0});Nd.isOpening=r,Hi(e),e.dispatchEvent(d),Nd.isOpening=!1}Nd.isOpening=!1;let Rl=new Map,$4=new Set;function cL(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let t=o=>{if(!e(o)||!o.target)return;let i=Rl.get(o.target);i||(i=new Set,Rl.set(o.target,i),o.target.addEventListener("transitioncancel",r,{once:!0})),i.add(o.propertyName)},r=o=>{if(!e(o)||!o.target)return;let i=Rl.get(o.target);if(i&&(i.delete(o.propertyName),i.size===0&&(o.target.removeEventListener("transitioncancel",r),Rl.delete(o.target)),Rl.size===0)){for(let s of $4)s();$4.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?cL():document.addEventListener("DOMContentLoaded",cL));function uL(e){requestAnimationFrame(()=>{Rl.size===0?e():$4.add(e)})}function eh(){let e=g.useRef(new Map),t=g.useCallback((i,s,l,c)=>{let u=c!=null&&c.once?(...d)=>{e.current.delete(l),l(...d)}:l;e.current.set(l,{type:s,eventTarget:i,fn:u,options:c}),i.addEventListener(s,u,c)},[]),r=g.useCallback((i,s,l,c)=>{var u;let d=((u=e.current.get(l))===null||u===void 0?void 0:u.fn)||l;i.removeEventListener(s,d,c),e.current.delete(l)},[]),o=g.useCallback(()=>{e.current.forEach((i,s)=>{r(i.eventTarget,i.type,s,i.options)})},[r]);return g.useEffect(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function th(e,t){let{id:r,"aria-label":o,"aria-labelledby":i}=e;return r=Zr(r),i&&o?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!o&&!i&&t&&(o=t),{id:r,"aria-label":o,"aria-labelledby":i}}function dL(e){const t=g.useRef(null);return g.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function fL(e,t){const r=g.useRef(!0),o=g.useRef(null);g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),g.useEffect(()=>{let i=o.current;r.current?r.current=!1:(!i||t.some((s,l)=>!Object.is(s,i[l])))&&e(),o.current=t},t)}function LFe(){return typeof window.ResizeObserver<"u"}function OFe(e){const{ref:t,box:r,onResize:o}=e;g.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(LFe()){const s=new window.ResizeObserver(l=>{l.length&&o()});return s.observe(i,{box:r}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[o,t,r])}function pL(e,t){La(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function C4(e,t){if(!e)return!1;let r=window.getComputedStyle(e),o=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function mL(e,t){let r=e;for(C4(r,t)&&(r=r.parentElement);r&&!C4(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function BFe(e,t){const r=[];for(;e&&e!==document.documentElement;)C4(e,t)&&r.push(e),e=e.parentElement;return r}let MFe=0;const x4=new Map;function w4(e){let[t,r]=g.useState();return La(()=>{if(!e)return;let o=x4.get(e);if(o)r(o.element.id);else{let i=`react-aria-description-${MFe++}`;r(i);let s=document.createElement("div");s.id=i,s.style.display="none",s.textContent=e,document.body.appendChild(s),o={refCount:0,element:s},x4.set(e,o)}return o.refCount++,()=>{o&&--o.refCount===0&&(o.element.remove(),x4.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function rh(e,t,r,o){let i=ir(r),s=r==null;g.useEffect(()=>{if(s||!e.current)return;let l=e.current;return l.addEventListener(t,i,o),()=>{l.removeEventListener(t,i,o)}},[e,t,o,s,i])}function FFe(e,t){let r=gL(e,t,"left"),o=gL(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,l=e.scrollLeft,c=e.scrollTop,{borderTopWidth:u,borderLeftWidth:d,scrollPaddingTop:f,scrollPaddingRight:p,scrollPaddingBottom:m,scrollPaddingLeft:b}=getComputedStyle(e),h=l+parseInt(d,10),y=c+parseInt(u,10),v=h+e.clientWidth,$=y+e.clientHeight,C=parseInt(f,10)||0,T=parseInt(m,10)||0,x=parseInt(p,10)||0,w=parseInt(b,10)||0;r<=l+w?l=r-parseInt(d,10)-w:r+i>v-x&&(l+=r+i-v+x),o<=y+C?c=o-parseInt(u,10)-C:o+s>$-T&&(c+=o+s-$+T),e.scrollLeft=l,e.scrollTop=c}function gL(e,t,r){const o=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[o];break}t=t.offsetParent}return i}function hL(e,t){if(e&&document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let u=BFe(e);for(let d of u)FFe(d,e)}else{var r;let{left:u,top:d}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:f,top:p}=e.getBoundingClientRect();if(Math.abs(u-f)>1||Math.abs(d-p)>1){var o,i,s;t==null||(i=t.containingElement)===null||i===void 0||(o=i.scrollIntoView)===null||o===void 0||o.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function A4(e){return e.mozInputSource===0&&e.isTrusted?!0:v4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function RFe(e){return!v4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function bL(e,t){let r=g.useRef(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}function E4(e,t,r){let o=g.useRef(t),i=ir(()=>{r&&r(o.current)});g.useEffect(()=>{var s;let l=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[e,i])}const T4=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],VFe=T4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";T4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const GFe=T4.join(':not([hidden]):not([tabindex="-1"]),');function yL(e){return e.matches(VFe)}function zFe(e){return e.matches(GFe)}function Xi(e,t,r){let[o,i]=g.useState(e||t),s=g.useRef(e!==void 0),l=e!==void 0;g.useEffect(()=>{let d=s.current;d!==l&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let c=l?e:o,u=g.useCallback((d,...f)=>{let p=(m,...b)=>{r&&(Object.is(c,m)||r(m,...b)),l||(c=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...h)=>{let y=d(l?c:b,...h);return p(y,...f),l?b:y})):(l||i(d),p(d,...f))},[l,c,r]);return[c,u]}function _4(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ah(e,t){let r=e,o=t.toString(),i=o.indexOf("."),s=i>=0?o.length-i:0;if(s>0){let l=Math.pow(10,s);r=Math.round(r*l)/l}return r}function to(e,t,r,o){t=Number(t),r=Number(r);let i=(e-(isNaN(t)?0:t))%o,s=ah(Math.abs(i)*2>=o?e+Math.sign(i)*(o-Math.abs(i)):e-i,o);return isNaN(t)?!isNaN(r)&&s>r&&(s=Math.floor(ah(r/o,o))*o):s<t?s=t:!isNaN(r)&&s>r&&(s=t+Math.floor(ah((r-t)/o,o))*o),s=ah(s,o),s}const D4=Symbol("default");function Ld({values:e,children:t}){for(let[r,o]of e)t=g.createElement(r.Provider,{value:o},t);return t}function ro(e){let{className:t,style:r,children:o,defaultClassName:i,defaultChildren:s,defaultStyle:l,values:c}=e;return g.useMemo(()=>{let u,d,f;return typeof t=="function"?u=t({...c,defaultClassName:i}):u=t,typeof r=="function"?d=r({...c,defaultStyle:l||{}}):d=r,typeof o=="function"?f=o({...c,defaultChildren:s}):o==null?f=s:f=o,{className:u??i,style:d||l?{...l,...d}:void 0,children:f??s,"data-rac":""}},[t,r,o,i,s,l,c])}function nh(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function Od(e,t){let r=g.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let o=t||D4;if(!r.slots[o]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),s=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${s} Valid slot names are ${i}.`)}return r.slots[o]}return r}function ao(e,t,r){let o=Od(r,e.slot)||{},{ref:i,...s}=o,l=dL(g.useMemo(()=>AFe(t,i),[t,i])),c=ct(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?c.style=u=>{let d=typeof s.style=="function"?s.style(u):s.style,f={...u.defaultStyle,...d},p=typeof e.style=="function"?e.style({...u,defaultStyle:f}):e.style;return{...f,...p}}:c.style={...s.style,...e.style}),[c,l]}function vL(e=!0){let[t,r]=g.useState(e),o=g.useRef(!1),i=g.useCallback(s=>{o.current=!0,r(!!s)},[]);return La(()=>{o.current||r(!1)},[]),[i,t]}function $L(e){const t=/^(data-.*)$/;let r={};for(const o in e)t.test(o)||(r[o]=e[o]);return r}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const ZFe=g.createContext(!1);function CL(e){let t=(r,o)=>g.useContext(ZFe)?null:e(r,o);return t.displayName=e.displayName||e.name,g.forwardRef(t)}let Vl="default",S4="",oh=new WeakMap;function xL(e){if(Qg()){if(Vl==="default"){const t=Wt(e);S4=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Vl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";oh.set(e,e.style[t]),e.style[t]="none"}}function P4(e){if(Qg()){if(Vl!=="disabled")return;Vl="restoring",setTimeout(()=>{uL(()=>{if(Vl==="restoring"){const t=Wt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=S4||""),S4="",Vl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&oh.has(e)){let t=oh.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),oh.delete(e)}}const wL=g.createContext({register:()=>{}});wL.displayName="PressResponderContext";class AL{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function EL(e){let t=g.useRef({isFocused:!1,observer:null});La(()=>{const o=t.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let r=ir(o=>{e==null||e(o)});return g.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=o.target,s=l=>{t.current.isFocused=!1,i.disabled&&r(new AL("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let c=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let ih=!1;function TL(e){for(;e&&!yL(e);)e=e.parentElement;let t=Wr(e),r=t.document.activeElement;if(!r||r===e)return;ih=!0;let o=!1,i=f=>{(f.target===r||o)&&f.stopImmediatePropagation()},s=f=>{(f.target===r||o)&&(f.stopImmediatePropagation(),!e&&!o&&(o=!0,Hi(r),u()))},l=f=>{(f.target===e||o)&&f.stopImmediatePropagation()},c=f=>{(f.target===e||o)&&(f.stopImmediatePropagation(),o||(o=!0,Hi(r),u()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",c,!0),t.addEventListener("focus",l,!0);let u=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",c,!0),t.removeEventListener("focus",l,!0),ih=!1,o=!1},d=requestAnimationFrame(u);return u}function WFe(e,t){return t.get?t.get.call(e):t.value}function _L(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function qFe(e,t){var r=_L(e,t,"get");return WFe(e,r)}function UFe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bd(e,t,r){UFe(e,t),t.set(e,r)}function HFe(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function DL(e,t,r){var o=_L(e,t,"set");return HFe(e,o,r),r}function XFe(e){let t=g.useContext(wL);if(t){let{register:r,...o}=t;e=ct(o,e),r()}return pL(t,e.ref),e}var sh=new WeakMap;class lh{continuePropagation(){DL(this,sh,!1)}get shouldStopPropagation(){return qFe(this,sh)}constructor(t,r,o,i){Bd(this,sh,{writable:!0,value:void 0}),DL(this,sh,!0);var s;let l=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:o.currentTarget;const c=l==null?void 0:l.getBoundingClientRect();let u,d=0,f,p=null;o.clientX!=null&&o.clientY!=null&&(f=o.clientX,p=o.clientY),c&&(f!=null&&p!=null?(u=f-c.left,d=p-c.top):(u=c.width/2,d=c.height/2)),this.type=t,this.pointerType=r,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey,this.x=u,this.y=d}}const SL=Symbol("linkClicked");function I4(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:i,onPressUp:s,isDisabled:l,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...m}=XFe(e),[b,h]=g.useState(!1),y=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=eh(),C=ir((A,I)=>{let O=y.current;if(l||O.didFirePressStart)return!1;let j=!0;if(O.isTriggeringEvent=!0,o){let V=new lh("pressstart",I,A);o(V),j=V.shouldStopPropagation}return r&&r(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,h(!0),j}),T=ir((A,I,O=!0)=>{let j=y.current;if(!j.didFirePressStart)return!1;j.didFirePressStart=!1,j.isTriggeringEvent=!0;let V=!0;if(i){let k=new lh("pressend",I,A);i(k),V=k.shouldStopPropagation}if(r&&r(!1),h(!1),t&&O&&!l){let k=new lh("press",I,A);t(k),V&&(V=k.shouldStopPropagation)}return j.isTriggeringEvent=!1,V}),x=ir((A,I)=>{let O=y.current;if(l)return!1;if(s){O.isTriggeringEvent=!0;let j=new lh("pressup",I,A);return s(j),O.isTriggeringEvent=!1,j.shouldStopPropagation}return!0}),w=ir(A=>{let I=y.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&T(Gl(I.target,A),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,$(),f||P4(I.target);for(let O of I.disposables)O();I.disposables=[]}}),S=ir(A=>{d&&w(A)}),P=g.useMemo(()=>{let A=y.current,I={onKeyDown(j){if(k4(j.nativeEvent,j.currentTarget)&&$t(j.currentTarget,vt(j.nativeEvent))){var V;jL(vt(j.nativeEvent),j.key)&&j.preventDefault();let k=!0;if(!A.isPressed&&!j.repeat){A.target=j.currentTarget,A.isPressed=!0,A.pointerType="keyboard",k=C(j,"keyboard");let Z=j.currentTarget,U=X=>{k4(X,Z)&&!X.repeat&&$t(Z,vt(X))&&A.target&&x(Gl(A.target,X),"keyboard")};v(Wt(j.currentTarget),"keyup",b4(U,O),!0)}k&&j.stopPropagation(),j.metaKey&&Fl()&&((V=A.metaKeyEvents)===null||V===void 0||V.set(j.key,j.nativeEvent))}else j.key==="Meta"&&(A.metaKeyEvents=new Map)},onClick(j){if(!(j&&!$t(j.currentTarget,vt(j.nativeEvent)))&&j&&j.button===0&&!A.isTriggeringEvent&&!Nd.isOpening){let V=!0;if(l&&j.preventDefault(),!A.ignoreEmulatedMouseEvents&&!A.isPressed&&(A.pointerType==="virtual"||A4(j.nativeEvent))){let k=C(j,"virtual"),Z=x(j,"virtual"),U=T(j,"virtual");V=k&&Z&&U}else if(A.isPressed&&A.pointerType!=="keyboard"){let k=A.pointerType||j.nativeEvent.pointerType||"virtual";V=T(Gl(j.currentTarget,j),k,!0),A.isOverTarget=!1,w(j)}A.ignoreEmulatedMouseEvents=!1,V&&j.stopPropagation()}}},O=j=>{var V;if(A.isPressed&&A.target&&k4(j,A.target)){var k;jL(vt(j),j.key)&&j.preventDefault();let U=vt(j);T(Gl(A.target,j),"keyboard",$t(A.target,vt(j))),$(),j.key!=="Enter"&&j4(A.target)&&$t(A.target,U)&&!j[SL]&&(j[SL]=!0,Nd(A.target,j,!1)),A.isPressed=!1,(k=A.metaKeyEvents)===null||k===void 0||k.delete(j.key)}else if(j.key==="Meta"&&(!((V=A.metaKeyEvents)===null||V===void 0)&&V.size)){var Z;let U=A.metaKeyEvents;A.metaKeyEvents=void 0;for(let X of U.values())(Z=A.target)===null||Z===void 0||Z.dispatchEvent(new KeyboardEvent("keyup",X))}};if(typeof PointerEvent<"u"){I.onPointerDown=k=>{if(k.button!==0||!$t(k.currentTarget,vt(k.nativeEvent)))return;if(RFe(k.nativeEvent)){A.pointerType="virtual";return}A.pointerType=k.pointerType;let Z=!0;if(!A.isPressed){A.isPressed=!0,A.isOverTarget=!0,A.activePointerId=k.pointerId,A.target=k.currentTarget,f||xL(A.target),Z=C(k,A.pointerType);let U=vt(k.nativeEvent);"releasePointerCapture"in U&&U.releasePointerCapture(k.pointerId),v(Wt(k.currentTarget),"pointerup",j,!1),v(Wt(k.currentTarget),"pointercancel",V,!1)}Z&&k.stopPropagation()},I.onMouseDown=k=>{if($t(k.currentTarget,vt(k.nativeEvent))&&k.button===0){if(u){let Z=TL(k.target);Z&&A.disposables.push(Z)}k.stopPropagation()}},I.onPointerUp=k=>{!$t(k.currentTarget,vt(k.nativeEvent))||A.pointerType==="virtual"||k.button===0&&x(k,A.pointerType||k.pointerType)},I.onPointerEnter=k=>{k.pointerId===A.activePointerId&&A.target&&!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,C(Gl(A.target,k),A.pointerType))},I.onPointerLeave=k=>{k.pointerId===A.activePointerId&&A.target&&A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,T(Gl(A.target,k),A.pointerType,!1),S(k))};let j=k=>{if(k.pointerId===A.activePointerId&&A.isPressed&&k.button===0&&A.target){if($t(A.target,vt(k))&&A.pointerType!=null){let Z=!1,U=setTimeout(()=>{A.isPressed&&A.target instanceof HTMLElement&&(Z?w(k):(Hi(A.target),A.target.click()))},80);v(k.currentTarget,"click",()=>Z=!0,!0),A.disposables.push(()=>clearTimeout(U))}else w(k);A.isOverTarget=!1}},V=k=>{w(k)};I.onDragStart=k=>{$t(k.currentTarget,vt(k.nativeEvent))&&w(k)}}else{I.onMouseDown=k=>{if(k.button!==0||!$t(k.currentTarget,vt(k.nativeEvent)))return;if(A.ignoreEmulatedMouseEvents){k.stopPropagation();return}if(A.isPressed=!0,A.isOverTarget=!0,A.target=k.currentTarget,A.pointerType=A4(k.nativeEvent)?"virtual":"mouse",bf.flushSync(()=>C(k,A.pointerType))&&k.stopPropagation(),u){let U=TL(k.target);U&&A.disposables.push(U)}v(Wt(k.currentTarget),"mouseup",j,!1)},I.onMouseEnter=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;let Z=!0;A.isPressed&&!A.ignoreEmulatedMouseEvents&&A.pointerType!=null&&(A.isOverTarget=!0,Z=C(k,A.pointerType)),Z&&k.stopPropagation()},I.onMouseLeave=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;let Z=!0;A.isPressed&&!A.ignoreEmulatedMouseEvents&&A.pointerType!=null&&(A.isOverTarget=!1,Z=T(k,A.pointerType,!1),S(k)),Z&&k.stopPropagation()},I.onMouseUp=k=>{$t(k.currentTarget,vt(k.nativeEvent))&&!A.ignoreEmulatedMouseEvents&&k.button===0&&x(k,A.pointerType||"mouse")};let j=k=>{if(k.button===0){if(A.ignoreEmulatedMouseEvents){A.ignoreEmulatedMouseEvents=!1;return}A.target&&A.target.contains(k.target)&&A.pointerType!=null||w(k),A.isOverTarget=!1}};I.onTouchStart=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;let Z=YFe(k.nativeEvent);if(!Z)return;A.activePointerId=Z.identifier,A.ignoreEmulatedMouseEvents=!0,A.isOverTarget=!0,A.isPressed=!0,A.target=k.currentTarget,A.pointerType="touch",f||xL(A.target),C(ei(A.target,k),A.pointerType)&&k.stopPropagation(),v(Wr(k.currentTarget),"scroll",V,!0)},I.onTouchMove=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;if(!A.isPressed){k.stopPropagation();return}let Z=PL(k.nativeEvent,A.activePointerId),U=!0;Z&&IL(Z,k.currentTarget)?!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,U=C(ei(A.target,k),A.pointerType)):A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,U=T(ei(A.target,k),A.pointerType,!1),S(ei(A.target,k))),U&&k.stopPropagation()},I.onTouchEnd=k=>{if(!$t(k.currentTarget,vt(k.nativeEvent)))return;if(!A.isPressed){k.stopPropagation();return}let Z=PL(k.nativeEvent,A.activePointerId),U=!0;Z&&IL(Z,k.currentTarget)&&A.pointerType!=null?(x(ei(A.target,k),A.pointerType),U=T(ei(A.target,k),A.pointerType)):A.isOverTarget&&A.pointerType!=null&&(U=T(ei(A.target,k),A.pointerType,!1)),U&&k.stopPropagation(),A.isPressed=!1,A.activePointerId=null,A.isOverTarget=!1,A.ignoreEmulatedMouseEvents=!0,A.target&&!f&&P4(A.target),$()},I.onTouchCancel=k=>{$t(k.currentTarget,vt(k.nativeEvent))&&(k.stopPropagation(),A.isPressed&&w(ei(A.target,k)))};let V=k=>{A.isPressed&&$t(vt(k),A.target)&&w({currentTarget:A.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};I.onDragStart=k=>{$t(k.currentTarget,vt(k.nativeEvent))&&w(k)}}return I},[v,l,u,$,f,w,S,T,C,x]);return g.useEffect(()=>{let A=y.current;return()=>{var I;f||P4((I=A.target)!==null&&I!==void 0?I:void 0);for(let O of A.disposables)O();A.disposables=[]}},[f]),{isPressed:c||b,pressProps:ct(m,P)}}function j4(e){return e.tagName==="A"&&e.hasAttribute("href")}function k4(e,t){const{key:r,code:o}=e,i=t,s=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||o==="Space")&&!(i instanceof Wr(i).HTMLInputElement&&!kL(i,r)||i instanceof Wr(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&j4(i))&&r!=="Enter")}function YFe(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function PL(e,t){const r=e.changedTouches;for(let o=0;o<r.length;o++){const i=r[o];if(i.identifier===t)return i}return null}function ei(e,t){let r=0,o=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,o=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o}}function Gl(e,t){let r=t.clientX,o=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o}}function JFe(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function KFe(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function IL(e,t){let r=t.getBoundingClientRect(),o=JFe(e);return KFe(r,o)}function QFe(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!j4(e)}function jL(e,t){return e instanceof HTMLInputElement?!kL(e,t):QFe(e)}const eRe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kL(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":eRe.has(e.type)}let Yi=null,N4=new Set,Md=new Map,Ji=!1,L4=!1;const tRe={Tab:!0,Escape:!0};function ch(e,t){for(let r of N4)r(e,t)}function rRe(e){return!(e.metaKey||!Fl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function uh(e){Ji=!0,rRe(e)&&(Yi="keyboard",ch("keyboard",e))}function la(e){Yi="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ji=!0,ch("pointer",e))}function NL(e){A4(e)&&(Ji=!0,Yi="virtual")}function LL(e){e.target===window||e.target===document||ih||!e.isTrusted||(!Ji&&!L4&&(Yi="virtual",ch("virtual",e)),Ji=!1,L4=!1)}function OL(){ih||(Ji=!1,L4=!0)}function O4(e){if(typeof window>"u"||Md.get(Wr(e)))return;const t=Wr(e),r=Wt(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ji=!0,o.apply(this,arguments)},r.addEventListener("keydown",uh,!0),r.addEventListener("keyup",uh,!0),r.addEventListener("click",NL,!0),t.addEventListener("focus",LL,!0),t.addEventListener("blur",OL,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",la,!0),r.addEventListener("pointermove",la,!0),r.addEventListener("pointerup",la,!0)):(r.addEventListener("mousedown",la,!0),r.addEventListener("mousemove",la,!0),r.addEventListener("mouseup",la,!0)),t.addEventListener("beforeunload",()=>{BL(e)},{once:!0}),Md.set(t,{focus:o})}const BL=(e,t)=>{const r=Wr(e),o=Wt(e);t&&o.removeEventListener("DOMContentLoaded",t),Md.has(r)&&(r.HTMLElement.prototype.focus=Md.get(r).focus,o.removeEventListener("keydown",uh,!0),o.removeEventListener("keyup",uh,!0),o.removeEventListener("click",NL,!0),r.removeEventListener("focus",LL,!0),r.removeEventListener("blur",OL,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",la,!0),o.removeEventListener("pointermove",la,!0),o.removeEventListener("pointerup",la,!0)):(o.removeEventListener("mousedown",la,!0),o.removeEventListener("mousemove",la,!0),o.removeEventListener("mouseup",la,!0)),Md.delete(r))};function aRe(e){const t=Wt(e);let r;return t.readyState!=="loading"?O4(e):(r=()=>{O4(e)},t.addEventListener("DOMContentLoaded",r)),()=>BL(e,r)}typeof document<"u"&&aRe();function ML(){return Yi!=="pointer"}function FL(){return Yi}function nRe(e){Yi=e,ch(e,null)}const oRe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function iRe(e,t,r){let o=Wt(r==null?void 0:r.target);const i=typeof window<"u"?Wr(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Wr(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Wr(r==null?void 0:r.target).HTMLElement:HTMLElement,c=typeof window<"u"?Wr(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||o.activeElement instanceof i&&!oRe.has(o.activeElement.type)||o.activeElement instanceof s||o.activeElement instanceof l&&o.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof c&&!tRe[r.key])}function sRe(e,t,r){O4(),g.useEffect(()=>{let o=(i,s)=>{iRe(!!(r!=null&&r.isTextInput),i,s)&&e(ML())};return N4.add(o),()=>{N4.delete(o)}},t)}function dh(e){const t=Wt(e),r=Ui(t);if(FL()==="virtual"){let o=r;uL(()=>{Ui(t)===o&&e.isConnected&&Hi(e)})}else Hi(e)}function B4(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:i}=e;const s=g.useCallback(u=>{if(u.target===u.currentTarget)return o&&o(u),i&&i(!1),!0},[o,i]),l=EL(s),c=g.useCallback(u=>{const d=Wt(u.target),f=d?Ui(d):Ui();u.target===u.currentTarget&&f===vt(u.nativeEvent)&&(r&&r(u),i&&i(!0),l(u))},[i,r,l]);return{focusProps:{onFocus:!t&&(r||i||o)?c:void 0,onBlur:!t&&(o||i)?s:void 0}}}function RL(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function lRe(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:RL(e.onKeyDown),onKeyUp:RL(e.onKeyUp)}}}let cRe=g.createContext(null);function uRe(e){let t=g.useContext(cRe)||{};pL(t,e);let{ref:r,...o}=t;return o}function VL(e,t){let{focusProps:r}=B4(e),{keyboardProps:o}=lRe(e),i=ct(r,o),s=uRe(t),l=e.isDisabled?{}:s,c=g.useRef(e.autoFocus);g.useEffect(()=>{c.current&&t.current&&dh(t.current),c.current=!1},[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:ct({...i,tabIndex:u},l)}}function Fd(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:i}=e,s=g.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:c}=eh(),u=g.useCallback(p=>{p.currentTarget.contains(p.target)&&s.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(s.current.isFocusWithin=!1,c(),r&&r(p),i&&i(!1))},[r,i,s,c]),d=EL(u),f=g.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const m=Wt(p.target),b=Ui(m);if(!s.current.isFocusWithin&&b===vt(p.nativeEvent)){o&&o(p),i&&i(!0),s.current.isFocusWithin=!0,d(p);let h=p.currentTarget;l(m,"focus",y=>{if(s.current.isFocusWithin&&!$t(h,y.target)){let v=new AL("blur",new m.defaultView.FocusEvent("blur",{relatedTarget:y.target}));v.target=h,v.currentTarget=h,u(v)}},{capture:!0})}},[o,i,d,l,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}let fh=!1,M4=0;function F4(){fh=!0,setTimeout(()=>{fh=!1},50)}function GL(e){e.pointerType==="touch"&&F4()}function dRe(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",GL):document.addEventListener("touchend",F4),M4++,()=>{M4--,!(M4>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",GL):document.removeEventListener("touchend",F4))}}function Rd(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:i}=e,[s,l]=g.useState(!1),c=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(dRe,[]);let{addGlobalListener:u,removeAllGlobalListeners:d}=eh(),{hoverProps:f,triggerHoverEnd:p}=g.useMemo(()=>{let m=(y,v)=>{if(c.pointerType=v,i||v==="touch"||c.isHovered||!y.currentTarget.contains(y.target))return;c.isHovered=!0;let $=y.currentTarget;c.target=$,u(Wt(y.target),"pointerover",C=>{c.isHovered&&c.target&&!$t(c.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:$,pointerType:v}),r&&r(!0),l(!0)},b=(y,v)=>{let $=c.target;c.pointerType="",c.target=null,!(v==="touch"||!c.isHovered||!$)&&(c.isHovered=!1,d(),o&&o({type:"hoverend",target:$,pointerType:v}),r&&r(!1),l(!1))},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=y=>{fh&&y.pointerType==="mouse"||m(y,y.pointerType)},h.onPointerLeave=y=>{!i&&y.currentTarget.contains(y.target)&&b(y,y.pointerType)}):(h.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=y=>{!c.ignoreEmulatedMouseEvents&&!fh&&m(y,"mouse"),c.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=y=>{!i&&y.currentTarget.contains(y.target)&&b(y,"mouse")}),{hoverProps:h,triggerHoverEnd:b}},[t,r,o,i,c,u,d]);return g.useEffect(()=>{i&&p({currentTarget:c.target},c.pointerType)},[i]),{hoverProps:f,isHovered:s}}function fRe(e,t){let{onScroll:r,isDisabled:o}=e,i=g.useCallback(s=>{s.ctrlKey||(s.preventDefault(),s.stopPropagation(),r&&r({deltaX:s.deltaX,deltaY:s.deltaY}))},[r]);rh(t,"wheel",o?void 0:i)}const pRe=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),mRe=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function gRe(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return pRe.has(r.script)}let t=e.split("-")[0];return mRe.has(t)}const hRe=Symbol.for("react-aria.i18n.locale");function zL(){let e=typeof window<"u"&&window[hRe]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gRe(e)?"rtl":"ltr"}}let R4=zL(),Vd=new Set;function ZL(){R4=zL();for(let e of Vd)e(R4)}function bRe(){let e=iL(),[t,r]=g.useState(R4);return g.useEffect(()=>(Vd.size===0&&window.addEventListener("languagechange",ZL),Vd.add(r),()=>{Vd.delete(r),Vd.size===0&&window.removeEventListener("languagechange",ZL)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const yRe=g.createContext(null);function kr(){let e=bRe();return g.useContext(yRe)||e}var mn=function(){return mn=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},mn.apply(this,arguments)};function WL(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r}function vRe(e,t,r){if(r||arguments.length===2)for(var o=0,i=t.length,s;o<i;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;const $Re=Symbol.for("react-aria.i18n.locale"),CRe=Symbol.for("react-aria.i18n.strings");let zl;class Ki{getStringForLocale(t,r){let i=this.getStringsForLocale(r)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${r} locale`);return i}getStringsForLocale(t){let r=this.strings[t];return r||(r=xRe(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[$Re];if(zl===void 0){let i=window[CRe];if(!i)return null;zl={};for(let s in i)zl[s]=new Ki({[r]:i[s]},r)}let o=zl==null?void 0:zl[t];if(!o)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,o])=>o)),this.defaultLocale=r}}function xRe(e,t,r="en-US"){if(t[e])return t[e];let o=wRe(e);if(t[o])return t[o];for(let i in t)if(i.startsWith(o+"-"))return t[i];return t[r]}function wRe(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const qL=new Map,UL=new Map;class HL{format(t,r){let o=this.strings.getStringForLocale(t,this.locale);return typeof o=="function"?o(r,this):o}plural(t,r,o="cardinal"){let i=r["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+o,l=qL.get(s);l||(l=new Intl.PluralRules(this.locale,{type:o}),qL.set(s,l));let c=l.select(t);return i=r[c]||r.other,typeof i=="function"?i():i}number(t){let r=UL.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),UL.set(this.locale,r)),r.format(t)}select(t,r){let o=t[r]||t.other;return typeof o=="function"?o():o}constructor(t,r){this.locale=t,this.strings=r}}const XL=new WeakMap;function ARe(e){let t=XL.get(e);return t||(t=new Ki(e),XL.set(e,t)),t}function YL(e,t){return t&&Ki.getGlobalDictionaryForPackage(t)||ARe(e)}function ti(e,t){let{locale:r}=kr(),o=YL(e,t);return g.useMemo(()=>new HL(r,o),[r,o])}function Zl(e,t){return e-t*Math.floor(e/t)}const JL=1721426;function Qi(e,t,r,o){t=Gd(e,t);let i=t-1,s=-2;return r<=2?s=0:ri(t)&&(s=-1),JL-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+s+o)}function ri(e){return e%4===0&&(e%100!==0||e%400===0)}function Gd(e,t){return e==="BC"?1-t:t}function ph(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const ERe={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class qr{fromJulianDay(t){let r=t,o=r-JL,i=Math.floor(o/146097),s=Zl(o,146097),l=Math.floor(s/36524),c=Zl(s,36524),u=Math.floor(c/1461),d=Zl(c,1461),f=Math.floor(d/365),p=i*400+l*100+u*4+f+(l!==4&&f!==4?1:0),[m,b]=ph(p),h=r-Qi(m,b,1,1),y=2;r<Qi(m,b,3,1)?y=0:ri(b)&&(y=1);let v=Math.floor(((h+y)*12+373)/367),$=r-Qi(m,b,v,1)+1;return new Lt(m,b,v,$)}toJulianDay(t){return Qi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return ERe[ri(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ri(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const TRe={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Mt(e,t){return t=At(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function _Re(e,t){return t=At(t,e.calendar),e=es(e),t=es(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function DRe(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function SRe(e,t){return Mt(e,G4(t))}const PRe={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function V4(e,t,r){let o=e.calendar.toJulianDay(e),i=r?PRe[r]:ORe(t),s=Math.ceil(o+1-i)%7;return s<0&&(s+=7),s}function KL(e){return oo(Date.now(),e)}function G4(e){return Oa(KL(e))}function QL(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function e5(e,t){return t5(e)-t5(t)}function t5(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let z4=null;function ai(){return z4==null&&(z4=new Intl.DateTimeFormat().resolvedOptions().timeZone),z4}function es(e){return e.subtract({days:e.day-1})}function mh(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function IRe(e){return es(e.subtract({months:e.month-1}))}function jRe(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function kRe(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function zd(e,t,r){let o=V4(e,t,r);return e.subtract({days:o})}function NRe(e,t,r){return zd(e,t,r).add({days:6})}const r5=new Map;function LRe(e){if(Intl.Locale){let r=r5.get(e);return r||(r=new Intl.Locale(e).maximize().region,r&&r5.set(e,r)),r}let t=e.split("-")[1];return t==="u"?void 0:t}function ORe(e){let t=LRe(e);return t&&TRe[t]||0}function BRe(e,t,r){let o=e.calendar.getDaysInMonth(e);return Math.ceil((V4(es(e),t,r)+o)/7)}function a5(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function n5(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Wl(e){e=At(e,new qr);let t=Gd(e.era,e.year);return o5(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function o5(e,t,r,o,i,s,l){let c=new Date;return c.setUTCHours(o,i,s,l),c.setUTCFullYear(e,t-1,r),c.getTime()}function Z4(e,t){if(t==="UTC")return 0;if(e>0&&t===ai())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:i,hour:s,minute:l,second:c}=s5(e,t);return o5(r,o,i,s,l,c,0)-Math.floor(e/1e3)*1e3}const i5=new Map;function s5(e,t){let r=i5.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),i5.set(t,r));let o=r.formatToParts(new Date(e)),i={};for(let s of o)s.type!=="literal"&&(i[s.type]=s.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const l5=864e5;function MRe(e,t,r,o){return(r===o?[r]:[r,o]).filter(s=>FRe(e,t,s))}function FRe(e,t,r){let o=s5(r,t);return e.year===o.year&&e.month===o.month&&e.day===o.day&&e.hour===o.hour&&e.minute===o.minute&&e.second===o.second}function no(e,t,r="compatible"){let o=gn(e);if(t==="UTC")return Wl(o);if(t===ai()&&r==="compatible"){o=At(o,new qr);let u=new Date,d=Gd(o.era,o.year);return u.setFullYear(d,o.month-1,o.day),u.setHours(o.hour,o.minute,o.second,o.millisecond),u.getTime()}let i=Wl(o),s=Z4(i-l5,t),l=Z4(i+l5,t),c=MRe(o,t,i-s,i-l);if(c.length===1)return c[0];if(c.length>1)switch(r){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(i-s,i-l);case"compatible":case"later":return Math.max(i-s,i-l);case"reject":throw new RangeError("No such absolute time found")}}function c5(e,t,r="compatible"){return new Date(no(e,t,r))}function oo(e,t){let r=Z4(e,t),o=new Date(e+r),i=o.getUTCFullYear(),s=o.getUTCMonth()+1,l=o.getUTCDate(),c=o.getUTCHours(),u=o.getUTCMinutes(),d=o.getUTCSeconds(),f=o.getUTCMilliseconds();return new ql(i<1?"BC":"AD",i<1?-i+1:i,s,l,t,r,c,u,d,f)}function Oa(e){return new Lt(e.calendar,e.era,e.year,e.month,e.day)}function gn(e,t){let r=0,o=0,i=0,s=0;if("timeZone"in e)({hour:r,minute:o,second:i,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:o,second:i,millisecond:s}=t),new yh(e.calendar,e.era,e.year,e.month,e.day,r,o,i,s)}function At(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),o=e.copy();return o.calendar=t,o.era=r.era,o.year=r.year,o.month=r.month,o.day=r.day,ts(o),o}function gh(e,t,r){if(e instanceof ql)return e.timeZone===t?e:u5(e,t);let o=no(e,t,r);return oo(o,t)}function RRe(e){let t=Wl(e)-e.offset;return new Date(t)}function u5(e,t){let r=Wl(e)-e.offset;return At(oo(r,t),e.calendar)}const Zd=36e5;function hh(e,t){let r=e.copy(),o="hour"in r?m5(r,t):0;W4(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,q4(r),d5(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,VRe(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){var s,l;let u=(s=(l=r.calendar).isInverseEra)===null||s===void 0?void 0:s.call(l,r);r.year=i,r.month=u?1:r.calendar.getMonthsInYear(r),r.day=u?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let c=r.calendar.getMonthsInYear(r);return r.month>c&&(r.month=c,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function W4(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t}function q4(e){for(;e.month<1;)W4(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,W4(e,1)}function VRe(e){for(;e.day<1;)e.month--,q4(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,q4(e)}function d5(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function ts(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),d5(e)}function U4(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function f5(e,t){return hh(e,U4(t))}function H4(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),ts(r),r}function Wd(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),p5(r),r}function GRe(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=bh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=bh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=bh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=bh(e.hour,24),t}function p5(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function bh(e,t){let r=e%t;return r<0&&(r+=t),r}function m5(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,GRe(e)}function g5(e,t){let r=e.copy();return m5(r,t),r}function zRe(e,t){return g5(e,U4(t))}function X4(e,t,r,o){let i=e.copy();switch(t){case"era":{let c=e.calendar.getEras(),u=c.indexOf(e.era);if(u<0)throw new Error("Invalid era: "+e.era);u=io(u,r,0,c.length-1,o==null?void 0:o.round),i.era=c[u],ts(i);break}case"year":var s,l;!((s=(l=i.calendar).isInverseEra)===null||s===void 0)&&s.call(l,i)&&(r=-r),i.year=io(e.year,r,-1/0,9999,o==null?void 0:o.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=io(e.month,r,1,e.calendar.getMonthsInYear(e),o==null?void 0:o.round);break;case"day":i.day=io(e.day,r,1,e.calendar.getDaysInMonth(e),o==null?void 0:o.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ts(i),i}function Y4(e,t,r,o){let i=e.copy();switch(t){case"hour":{let s=e.hour,l=0,c=23;if((o==null?void 0:o.hourCycle)===12){let u=s>=12;l=u?12:0,c=u?23:11}i.hour=io(s,r,l,c,o==null?void 0:o.round);break}case"minute":i.minute=io(e.minute,r,0,59,o==null?void 0:o.round);break;case"second":i.second=io(e.second,r,0,59,o==null?void 0:o.round);break;case"millisecond":i.millisecond=io(e.millisecond,r,0,999,o==null?void 0:o.round);break;default:throw new Error("Unsupported field "+t)}return i}function io(e,t,r,o,i=!1){if(i){e+=Math.sign(t),e<r&&(e=o);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>o&&(e=r)}else e+=t,e<r?e=o-(r-e-1):e>o&&(e=r+(e-o-1));return e}function h5(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=hh(gn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=no(i,e.timeZone)}else r=Wl(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=oo(r,e.timeZone);return At(o,e.calendar)}function ZRe(e,t){return h5(e,U4(t))}function WRe(e,t,r,o){switch(t){case"hour":{let i=0,s=23;if((o==null?void 0:o.hourCycle)===12){let h=e.hour>=12;i=h?12:0,s=h?23:11}let l=gn(e),c=At(Wd(l,{hour:i}),new qr),u=[no(c,e.timeZone,"earlier"),no(c,e.timeZone,"later")].filter(h=>oo(h,e.timeZone).day===c.day)[0],d=At(Wd(l,{hour:s}),new qr),f=[no(d,e.timeZone,"earlier"),no(d,e.timeZone,"later")].filter(h=>oo(h,e.timeZone).day===d.day).pop(),p=Wl(e)-e.offset,m=Math.floor(p/Zd),b=p%Zd;return p=io(m,r,Math.floor(u/Zd),Math.floor(f/Zd),o==null?void 0:o.round)*Zd+b,At(oo(p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Y4(e,t,r,o);case"era":case"year":case"month":case"day":{let i=X4(gn(e),t,r,o),s=no(i,e.timeZone);return At(oo(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function qRe(e,t,r){let o=gn(e),i=Wd(H4(o,t),t);if(i.compare(o)===0)return e;let s=no(i,e.timeZone,r);return At(oo(s,e.timeZone),e.calendar)}const URe=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,HRe=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function XRe(e){let t=e.match(URe);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let r=new Lt(ca(t[1],0,9999),ca(t[2],1,12),1);return r.day=ca(t[3],0,r.calendar.getDaysInMonth(r)),r}function b5(e,t){let r=e.match(HRe);if(!r)throw new Error("Invalid ISO 8601 date time string: "+e);let o=ca(r[1],-9999,9999),i=o<1?"BC":"AD",s=new ql(i,o<1?-o+1:o,ca(r[2],1,12),1,t,0,r[4]?ca(r[4],0,23):0,r[5]?ca(r[5],0,59):0,r[6]?ca(r[6],0,59):0,r[7]?ca(r[7],0,1/0)*1e3:0);s.day=ca(r[3],0,s.calendar.getDaysInMonth(s));var l;return r[8]&&(s.offset=ca(r[8],-23,23)*36e5+ca((l=r[9])!==null&&l!==void 0?l:"0",0,59)*6e4),u5(s,t)}function ca(e,t,r){let o=Number(e);if(o<t||o>r)throw new RangeError(`Value out of range: ${t} <= ${o} <= ${r}`);return o}function y5(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function v5(e){let t=At(e,new qr),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function $5(e){return`${v5(e)}T${y5(e)}`}function YRe(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),o=e%36e5/6e4;return`${t}${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`}function JRe(e){return`${$5(e)}${YRe(e.offset)}[${e.timeZone}]`}function J4(e){let t=typeof e[0]=="object"?e.shift():new qr,r;if(typeof e[0]=="string")r=e.shift();else{let l=t.getEras();r=l[l.length-1]}let o=e.shift(),i=e.shift(),s=e.shift();return[t,r,o,i,s]}var KRe=new WeakMap;class Lt{copy(){return this.era?new Lt(this.calendar,this.era,this.year,this.month,this.day):new Lt(this.calendar,this.year,this.month,this.day)}add(t){return hh(this,t)}subtract(t){return f5(this,t)}set(t){return H4(this,t)}cycle(t,r,o){return X4(this,t,r,o)}toDate(t){return c5(this,t)}toString(){return v5(this)}compare(t){return QL(this,t)}constructor(...t){Bd(this,KRe,{writable:!0,value:void 0});let[r,o,i,s,l]=J4(t);this.calendar=r,this.era=o,this.year=i,this.month=s,this.day=l,ts(this)}}var QRe=new WeakMap;class K4{copy(){return new K4(this.hour,this.minute,this.second,this.millisecond)}add(t){return g5(this,t)}subtract(t){return zRe(this,t)}set(t){return Wd(this,t)}cycle(t,r,o){return Y4(this,t,r,o)}toString(){return y5(this)}compare(t){return e5(this,t)}constructor(t=0,r=0,o=0,i=0){Bd(this,QRe,{writable:!0,value:void 0}),this.hour=t,this.minute=r,this.second=o,this.millisecond=i,p5(this)}}var e7e=new WeakMap;class yh{copy(){return this.era?new yh(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new yh(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return hh(this,t)}subtract(t){return f5(this,t)}set(t){return H4(Wd(this,t),t)}cycle(t,r,o){switch(t){case"era":case"year":case"month":case"day":return X4(this,t,r,o);default:return Y4(this,t,r,o)}}toDate(t,r){return c5(this,t,r)}toString(){return $5(this)}compare(t){let r=QL(this,t);return r===0?e5(this,gn(t)):r}constructor(...t){Bd(this,e7e,{writable:!0,value:void 0});let[r,o,i,s,l]=J4(t);this.calendar=r,this.era=o,this.year=i,this.month=s,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ts(this)}}var t7e=new WeakMap;class ql{copy(){return this.era?new ql(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ql(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return h5(this,t)}subtract(t){return ZRe(this,t)}set(t,r){return qRe(this,t,r)}cycle(t,r,o){return WRe(this,t,r,o)}toDate(){return RRe(this)}toString(){return JRe(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-gh(t,this.timeZone).toDate().getTime()}constructor(...t){Bd(this,t7e,{writable:!0,value:void 0});let[r,o,i,s,l]=J4(t),c=t.shift(),u=t.shift();this.calendar=r,this.era=o,this.year=i,this.month=s,this.day=l,this.timeZone=c,this.offset=u,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ts(this)}}const Ul=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],r7e=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],vh=[1867,1911,1925,1988,2018],ni=["meiji","taisho","showa","heisei","reiwa"];function C5(e){const t=Ul.findIndex(([r,o,i])=>e.year<r||e.year===r&&e.month<o||e.year===r&&e.month===o&&e.day<i);return t===-1?Ul.length-1:t===0?0:t-1}function Q4(e){let t=vh[ni.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Lt(e.year+t,e.month,e.day)}class a7e extends qr{fromJulianDay(t){let r=super.fromJulianDay(t),o=C5(r);return new Lt(this,ni[o],r.year-vh[o],r.month,r.day)}toJulianDay(t){return super.toJulianDay(Q4(t))}balanceDate(t){let r=Q4(t),o=C5(r);ni[o]!==t.era&&(t.era=ni[o],t.year=r.year-vh[o]),this.constrainDate(t)}constrainDate(t){let r=ni.indexOf(t.era),o=r7e[r];if(o!=null){let[i,s,l]=o,c=i-vh[r];t.year=Math.max(1,Math.min(c,t.year)),t.year===c&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(l,t.day)))}if(t.year===1&&r>=0){let[,i,s]=Ul[r];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return ni}getYearsInEra(t){let r=ni.indexOf(t.era),o=Ul[r],i=Ul[r+1];if(i==null)return 9999-o[0]+1;let s=i[0]-o[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth(Q4(t))}getMinimumMonthInYear(t){let r=x5(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=x5(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function x5(e){if(e.year===1){let t=ni.indexOf(e.era);return Ul[t]}}const w5=-543;class n7e extends qr{fromJulianDay(t){let r=super.fromJulianDay(t),o=Gd(r.era,r.year);return new Lt(this,o-w5,r.month,r.day)}toJulianDay(t){return super.toJulianDay(A5(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(A5(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function A5(e){let[t,r]=ph(e.year+w5);return new Lt(t,r,e.month,e.day)}const $h=1911;function E5(e){return e.era==="minguo"?e.year+$h:1-e.year+$h}function T5(e){let t=e-$h;return t>0?["minguo",t]:["before_minguo",1-t]}class o7e extends qr{fromJulianDay(t){let r=super.fromJulianDay(t),o=Gd(r.era,r.year),[i,s]=T5(o);return new Lt(this,i,s,r.month,r.day)}toJulianDay(t){return super.toJulianDay(_5(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,o]=T5(E5(t));t.era=r,t.year=o}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(_5(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-$h}constructor(...t){super(...t),this.identifier="roc"}}function _5(e){let[t,r]=ph(E5(e));return new Lt(t,r,e.month,e.day)}const D5=1948320,S5=[0,31,62,93,124,155,186,216,246,276,306,336];class i7e{fromJulianDay(t){let r=t-D5,o=1+Math.floor((33*r+3)/12053),i=365*(o-1)+Math.floor((8*o+21)/33),s=r-i,l=s<216?Math.floor(s/31):Math.floor((s-6)/30),c=s-S5[l]+1;return new Lt(this,o,l+1,c)}toJulianDay(t){let r=D5-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return r+=S5[t.month-1],r+=t.day,r}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Zl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const eC=78,P5=80;class s7e extends qr{fromJulianDay(t){let r=super.fromJulianDay(t),o=r.year-eC,i=t-Qi(r.era,r.year,1,1),s;i<P5?(o--,s=ri(r.year-1)?31:30,i+=s+155+90+10):(s=ri(r.year)?31:30,i-=P5);let l,c;if(i<s)l=1,c=i+1;else{let u=i-s;u<155?(l=Math.floor(u/31)+2,c=u%31+1):(u-=155,l=Math.floor(u/30)+7,c=u%30+1)}return new Lt(this,o,l,c)}toJulianDay(t){let r=t.year+eC,[o,i]=ph(r),s,l;return ri(i)?(s=31,l=Qi(o,i,3,21)):(s=30,l=Qi(o,i,3,22)),t.month===1?l+t.day-1:(l+=s+Math.min(t.month-2,5)*31,t.month>=8&&(l+=(t.month-7)*30),l+=t.day-1,l)}getDaysInMonth(t){return t.month===1&&ri(t.year+eC)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Ch=1948440,I5=1948439,ua=1300,Hl=1600,l7e=460322;function xh(e,t,r,o){return o+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function j5(e,t,r){let o=Math.floor((30*(r-t)+10646)/10631),i=Math.min(12,Math.ceil((r-(29+xh(t,o,1,1)))/29.5)+1),s=r-xh(t,o,i,1)+1;return new Lt(e,o,i,s)}function k5(e){return(14+11*e)%30<11}class tC{fromJulianDay(t){return j5(this,Ch,t)}toJulianDay(t){return xh(Ch,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&k5(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return k5(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class c7e extends tC{fromJulianDay(t){return j5(this,I5,t)}toJulianDay(t){return xh(I5,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const u7e="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let rC,Xl;function wh(e){return l7e+Xl[e-ua]}function qd(e,t){let r=e-ua,o=1<<11-(t-1);return rC[r]&o?30:29}function N5(e,t){let r=wh(e);for(let o=1;o<t;o++)r+=qd(e,o);return r}function L5(e){return Xl[e+1-ua]-Xl[e-ua]}class d7e extends tC{fromJulianDay(t){let r=t-Ch,o=wh(ua),i=wh(Hl);if(r<o||r>i)return super.fromJulianDay(t);{let s=ua-1,l=1,c=1;for(;c>0;){s++,c=r-wh(s)+1;let u=L5(s);if(c===u){l=12;break}else if(c<u){let d=qd(s,l);for(l=1;c>d;)c-=d,l++,d=qd(s,l);break}}return new Lt(this,s,l,r-N5(s,l)+1)}}toJulianDay(t){return t.year<ua||t.year>Hl?super.toJulianDay(t):Ch+N5(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ua||t.year>Hl?super.getDaysInMonth(t):qd(t.year,t.month)}getDaysInYear(t){return t.year<ua||t.year>Hl?super.getDaysInYear(t):L5(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",rC||(rC=new Uint16Array(Uint8Array.from(atob(u7e),t=>t.charCodeAt(0)).buffer)),!Xl){Xl=new Uint32Array(Hl-ua+1);let t=0;for(let r=ua;r<=Hl;r++){Xl[r-ua]=t;for(let o=1;o<=12;o++)t+=qd(r,o)}}}}const O5=347997,B5=1080,M5=24*B5,f7e=29,p7e=12*B5+793,m7e=f7e*M5+p7e;function rs(e){return Zl(e*7+1,19)<7}function Ah(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,o=t*29+Math.floor(r/25920);return Zl(3*(o+1),7)<3&&(o+=1),o}function g7e(e){let t=Ah(e-1),r=Ah(e);return Ah(e+1)-r===356?2:r-t===382?1:0}function Ud(e){return Ah(e)+g7e(e)}function F5(e){return Ud(e+1)-Ud(e)}function h7e(e){let t=F5(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Eh(e,t){if(t>=6&&!rs(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=h7e(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?rs(e)?30:0:30}class b7e{fromJulianDay(t){let r=t-O5,o=r*M5/m7e,i=Math.floor((19*o+234)/235)+1,s=Ud(i),l=Math.floor(r-s);for(;l<1;)i--,s=Ud(i),l=Math.floor(r-s);let c=1,u=0;for(;u<l;)u+=Eh(i,c),c++;c--,u-=Eh(i,c);let d=l-u;return new Lt(this,i,c,d)}toJulianDay(t){let r=Ud(t.year);for(let o=1;o<t.month;o++)r+=Eh(t.year,o);return r+t.day+O5}getDaysInMonth(t){return Eh(t.year,t.month)}getMonthsInYear(t){return rs(t.year)?13:12}getDaysInYear(t){return F5(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(rs(r.year)&&!rs(t.year)&&r.month>6?t.month--:!rs(r.year)&&rs(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const aC=1723856,R5=1824665,nC=5500;function Th(e,t,r,o){return e+365*t+Math.floor(t/4)+30*(r-1)+o-1}function oC(e,t){let r=Math.floor(4*(t-e)/1461),o=1+Math.floor((t-Th(e,r,1,1))/30),i=t+1-Th(e,r,o,1);return[r,o,i]}function V5(e){return Math.floor(e%4/3)}function G5(e,t){return t%13!==0?30:V5(e)+5}class iC{fromJulianDay(t){let[r,o,i]=oC(aC,t),s="AM";return r<=0&&(s="AA",r+=nC),new Lt(this,s,r,o,i)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=nC),Th(aC,r,t.month,t.day)}getDaysInMonth(t){return G5(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+V5(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class y7e extends iC{fromJulianDay(t){let[r,o,i]=oC(aC,t);return r+=nC,new Lt(this,"AA",r,o,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class v7e extends iC{fromJulianDay(t){let[r,o,i]=oC(R5,t),s="CE";return r<=0&&(s="BCE",r=1-r),new Lt(this,s,r,o,i)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),Th(R5,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),G5(r,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function z5(e){switch(e){case"buddhist":return new n7e;case"ethiopic":return new iC;case"ethioaa":return new y7e;case"coptic":return new v7e;case"hebrew":return new b7e;case"indian":return new s7e;case"islamic-civil":return new tC;case"islamic-tbla":return new c7e;case"islamic-umalqura":return new d7e;case"japanese":return new a7e;case"persian":return new i7e;case"roc":return new o7e;case"gregory":default:return new qr}}let sC=new Map;class so{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(r)}`}formatRangeToParts(t,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let o=this.formatter.formatToParts(t),i=this.formatter.formatToParts(r);return[...o.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return x7e()&&(this.resolvedHourCycle||(this.resolvedHourCycle=w7e(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,r={}){this.formatter=Z5(t,r),this.options=r}}const $7e={true:{ja:"h11"},false:{}};function Z5(e,t={}){if(typeof t.hour12=="boolean"&&C7e()){t={...t};let i=$7e[String(t.hour12)][e.split("-")[0]],s=t.hour12?"h12":"h23";t.hourCycle=i??s,delete t.hour12}let r=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(sC.has(r))return sC.get(r);let o=new Intl.DateTimeFormat(e,t);return sC.set(r,o),o}let lC=null;function C7e(){return lC==null&&(lC=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),lC}let cC=null;function x7e(){return cC==null&&(cC=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),cC}function w7e(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let r=Z5(e,{...t,timeZone:void 0}),o=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(o===0&&i===23)return"h23";if(o===24&&i===23)return"h24";if(o===0&&i===11)return"h11";if(o===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function hn(e){e=bL(e??{},A7e);let{locale:t}=kr();return g.useMemo(()=>new so(t,e),[t,e])}function A7e(e,t){if(e===t)return!0;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let i of r)if(t[i]!==e[i])return!1;return!0}let uC=new Map,dC=!1;try{dC=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let _h=!1;try{_h=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const W5={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Dh{format(t){let r="";if(!dC&&this.options.signDisplay!=null?r=T7e(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!_h){var o;let{unit:i,unitDisplay:s="short",locale:l}=this.resolvedOptions();if(!i)return r;let c=(o=W5[i])===null||o===void 0?void 0:o[s];r+=c[l]||c.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let o=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(r);return[...o.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!dC&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!_h&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=E7e(t,r),this.options=r}}function E7e(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!_h){var o;let{unit:l,unitDisplay:c="short"}=t;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((o=W5[l])===null||o===void 0)&&o[c]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((l,c)=>l[0]<c[0]?-1:1).join():"");if(uC.has(i))return uC.get(i);let s=new Intl.NumberFormat(e,t);return uC.set(i,s),s}function T7e(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let o=!1;if(t==="always"?o=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):o=r>0),o){let i=e.format(-r),s=e.format(r),l=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(l,"+").replace("!!!",s)}else return e.format(r)}}const _7e=new RegExp("^.*\\(.*\\).*$"),D7e=["latn","arab","hanidec","deva","beng"];class fC{parse(t){return pC(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,o){return pC(this.locale,this.options,t).isValidPartialNumber(t,r,o)}getNumberingSystem(t){return pC(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const q5=new Map;function pC(e,t,r){let o=U5(e,t);if(!e.includes("-nu-")&&!o.isValidPartialNumber(r)){for(let i of D7e)if(i!==o.options.numberingSystem){let s=U5(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(r))return s}}return o}function U5(e,t){let r=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),o=q5.get(r);return o||(o=new S7e(e,t),q5.set(r,o)),o}class S7e{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=Sh(r,this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let l=r.indexOf("-");r=r.replace("-","");let c=r.indexOf(".");c===-1&&(c=r.length),r=r.replace(".",""),c-2===0?r=`0.${r}`:c-2===-1?r=`0.0${r}`:c-2===-2?r="0.00":r=`${r.slice(0,c-2)}.${r.slice(c-2)}`,l>-1&&(r=`-${r}`)}let o=r?+r:NaN;if(isNaN(o))return NaN;if(this.options.style==="percent"){var i,s;let l={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new fC(this.locale,l).parse(new Dh(this.locale,l).format(o))}return this.options.currencySign==="accounting"&&_7e.test(t)&&(o=-1*o),o}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Sh(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Sh(t,"."," ")),t}isValidPartialNumber(t,r=-1/0,o=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&o>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Sh(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=I7e(t,this.formatter,this.options,r);var o,i;this.options.style==="percent"&&(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const H5=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),P7e=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function I7e(e,t,r,o){var i,s,l,c;let u=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=u.formatToParts(-10000.111),f=u.formatToParts(10000.111),p=P7e.map(O=>u.formatToParts(O));var m;let b=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",h=(s=f.find(O=>O.type==="plusSign"))===null||s===void 0?void 0:s.value;!h&&((o==null?void 0:o.signDisplay)==="exceptZero"||(o==null?void 0:o.signDisplay)==="always")&&(h="+");let v=(l=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||l===void 0?void 0:l.value,$=(c=d.find(O=>O.type==="group"))===null||c===void 0?void 0:c.value,C=d.filter(O=>!H5.has(O.type)).map(O=>X5(O.value)),T=p.flatMap(O=>O.filter(j=>!H5.has(j.type)).map(j=>X5(j.value))),x=[...new Set([...C,...T])].sort((O,j)=>j.length-O.length),w=x.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),S=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),P=new Map(S.map((O,j)=>[O,j])),A=new RegExp(`[${S.join("")}]`,"g");return{minusSign:b,plusSign:h,decimal:v,group:$,literals:w,numeral:A,index:O=>String(P.get(O))}}function Sh(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function X5(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y5(e={}){let{locale:t}=kr();return g.useMemo(()=>new Dh(t,e),[t,e])}let mC=new Map;function j7e(e){let{locale:t}=kr(),r=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(mC.has(r))return mC.get(r);let o=new Intl.Collator(t,e);return mC.set(r,o),o}function k7e(e){let t=j7e({usage:"search",...e}),r=g.useCallback((s,l)=>l.length===0?!0:(s=s.normalize("NFC"),l=l.normalize("NFC"),t.compare(s.slice(0,l.length),l)===0),[t]),o=g.useCallback((s,l)=>l.length===0?!0:(s=s.normalize("NFC"),l=l.normalize("NFC"),t.compare(s.slice(-l.length),l)===0),[t]),i=g.useCallback((s,l)=>{if(l.length===0)return!0;s=s.normalize("NFC"),l=l.normalize("NFC");let c=0,u=l.length;for(;c+u<=s.length;c++){let d=s.slice(c,c+u);if(t.compare(l,d)===0)return!0}return!1},[t]);return g.useMemo(()=>({startsWith:r,endsWith:o,contains:i}),[r,o,i])}function N7e(e,t){let{elementType:r="button",isDisabled:o,onPress:i,onPressStart:s,onPressEnd:l,onPressUp:c,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:p,href:m,target:b,rel:h,type:y="button"}=e,v;r==="button"?v={type:y,disabled:o}:v={role:"button",href:r==="a"&&!o?m:void 0,target:r==="a"?b:void 0,type:r==="input"?y:void 0,disabled:r==="input"?o:void 0,"aria-disabled":!o||r==="input"?void 0:o,rel:r==="a"?h:void 0};let{pressProps:$,isPressed:C}=I4({onPressStart:s,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:c,isDisabled:o,preventFocusOnPress:d,ref:t}),{focusableProps:T}=VL(e,t);f&&(T.tabIndex=o?-1:T.tabIndex);let x=ct(T,$,Yt(e,{labelable:!0}));return{isPressed:C,buttonProps:ct(v,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],onClick:w=>{p&&(p(w),console.warn("onClick is deprecated, please use onPress"))}})}}function L7e(e){const t=Wr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:o}=e.style,i=r!=="none"&&o!=="hidden"&&o!=="collapse";if(i){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:l,visibility:c}=s(e);i=l!=="none"&&c!=="hidden"&&c!=="collapse"}return i}function O7e(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function J5(e,t){return e.nodeName!=="#comment"&&L7e(e)&&O7e(e,t)&&(!e.parentElement||J5(e.parentElement,e))}function K5(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Hd(e,t=!1){if(e!=null&&!t)try{dh(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Yl(e,t,r){let o=t!=null&&t.tabbable?zFe:yL,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=Wt(i),l=wFe(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(c){var u;return!(t==null||(u=t.from)===null||u===void 0)&&u.contains(c)?NodeFilter.FILTER_REJECT:o(c)&&J5(c)&&(!r||K5(c,r))&&(!(t!=null&&t.accept)||t.accept(c))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(l.currentNode=t.from),l}function gC(e,t={}){return{focusNext(r={}){let o=e.current;if(!o)return null;let{from:i,tabbable:s=t.tabbable,wrap:l=t.wrap,accept:c=t.accept}=r,u=i||Ui(Wt(o)),d=Yl(o,{tabbable:s,accept:c});o.contains(u)&&(d.currentNode=u);let f=d.nextNode();return!f&&l&&(d.currentNode=o,f=d.nextNode()),f&&Hd(f,!0),f},focusPrevious(r=t){let o=e.current;if(!o)return null;let{from:i,tabbable:s=t.tabbable,wrap:l=t.wrap,accept:c=t.accept}=r,u=i||Ui(Wt(o)),d=Yl(o,{tabbable:s,accept:c});if(o.contains(u))d.currentNode=u;else{let p=hC(d);return p&&Hd(p,!0),p??null}let f=d.previousNode();if(!f&&l){d.currentNode=o;let p=hC(d);if(!p)return null;f=p}return f&&Hd(f,!0),f??null},focusFirst(r=t){let o=e.current;if(!o)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=r,c=Yl(o,{tabbable:i,accept:s}).nextNode();return c&&Hd(c,!0),c},focusLast(r=t){let o=e.current;if(!o)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=r,l=Yl(o,{tabbable:i,accept:s}),c=hC(l);return c&&Hd(c,!0),c??null}}}function hC(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}class bC{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let i=this.fastMap.get(r??null);if(!i)return;let s=new Q5({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),o&&(s.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&K5(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let i=r.children;o&&(o.removeChild(r),i.size>0&&i.forEach(s=>o&&o.addChild(s))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new bC;var o;for(let i of this.traverse())r.addTreeNode(i.scopeRef,(o=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&o!==void 0?o:null,i.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Q5({scopeRef:null}),this.fastMap.set(null,this.root)}}class Q5{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new bC;function Jl(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,i=g.useRef({isFocused:!1,isFocusVisible:t||ML()}),[s,l]=g.useState(!1),[c,u]=g.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=g.useCallback(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),f=g.useCallback(b=>{i.current.isFocused=b,l(b),d()},[d]);sRe(b=>{i.current.isFocusVisible=b,d()},[],{isTextInput:r});let{focusProps:p}=B4({isDisabled:o,onFocusChange:f}),{focusWithinProps:m}=Fd({isDisabled:!o,onFocusWithinChange:f});return{isFocused:s,isFocusVisible:c,focusProps:o?m:p}}var eO={};eO={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var tO={};tO={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var rO={};rO={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var aO={};aO={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var nO={};nO={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var oO={};oO={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var iO={};iO={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var sO={};sO={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var lO={};lO={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var cO={};cO={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var uO={};uO={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var dO={};dO={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var fO={};fO={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var pO={};pO={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var mO={};mO={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var gO={};gO={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var hO={};hO={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var bO={};bO={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var yO={};yO={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var vO={};vO={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var $O={};$O={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var CO={};CO={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var xO={};xO={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var wO={};wO={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var AO={};AO={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var EO={};EO={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var TO={};TO={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var _O={};_O={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var DO={};DO={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var SO={};SO={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var PO={};PO={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var IO={};IO={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var jO={};jO={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var kO={};kO={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Xd={};Xd={"ar-AE":eO,"bg-BG":tO,"cs-CZ":rO,"da-DK":aO,"de-DE":nO,"el-GR":oO,"en-US":iO,"es-ES":sO,"et-EE":lO,"fi-FI":cO,"fr-FR":uO,"he-IL":dO,"hr-HR":fO,"hu-HU":pO,"it-IT":mO,"ja-JP":gO,"ko-KR":hO,"lt-LT":bO,"lv-LV":yO,"nb-NO":vO,"nl-NL":$O,"pl-PL":CO,"pt-BR":xO,"pt-PT":wO,"ro-RO":AO,"ru-RU":EO,"sk-SK":TO,"sl-SI":_O,"sr-SP":DO,"sv-SE":SO,"tr-TR":PO,"uk-UA":IO,"zh-CN":jO,"zh-TW":kO};function NO(e){return e&&e.__esModule?e.default:e}const yC=new WeakMap;function Yd(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function B7e(e){let t=ti(NO(Xd),"@react-aria/calendar"),r,o;var i;"highlightedRange"in e?{start:r,end:o}=e.highlightedRange||{}:r=o=(i=e.value)!==null&&i!==void 0?i:void 0;let s=hn({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Yd(r)||Yd(o),timeZone:e.timeZone}),l="anchorDate"in e?e.anchorDate:null;return g.useMemo(()=>{if(!l&&r&&o)if(Mt(r,o)){let c=s.format(r.toDate(e.timeZone));return t.format("selectedDateDescription",{date:c})}else{let c=$C(s,t,r,o,e.timeZone);return t.format("selectedRangeDescription",{dateRange:c})}return""},[r,o,l,e.timeZone,t,s])}function vC(e,t,r,o){let i=ti(NO(Xd),"@react-aria/calendar"),s=Yd(e)||Yd(t),l=hn({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:r}),c=hn({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:r});return g.useMemo(()=>{if(Mt(e,es(e))){if(Mt(t,mh(e)))return l.format(e.toDate(r));if(Mt(t,mh(t)))return o?$C(l,i,e,t,r):l.formatRange(e.toDate(r),t.toDate(r))}return o?$C(c,i,e,t,r):c.formatRange(e.toDate(r),t.toDate(r))},[e,t,l,c,i,r,o])}function $C(e,t,r,o,i){let s=e.formatRangeToParts(r.toDate(i),o.toDate(i)),l=-1;for(let d=0;d<s.length;d++){let f=s[d];if(f.source==="shared"&&f.type==="literal")l=d;else if(f.source==="endRange")break}let c="",u="";for(let d=0;d<s.length;d++)d<l?c+=s[d].value:d>l&&(u+=s[d].value);return t.format("dateRange",{startDate:c,endDate:u})}const LO=7e3;let da=null;function Jd(e,t="assertive",r=LO){da?da.announce(e,t,r):(da=new F7e,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?da.announce(e,t,r):setTimeout(()=>{da!=null&&da.isAttached()&&(da==null||da.announce(e,t,r))},100))}function M7e(e){da&&da.clear(e)}class F7e{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",o=LO){var i,s;if(!this.node)return;let l=document.createElement("div");typeof t=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",t["aria-labelledby"])):l.textContent=t,r==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(s=this.politeLog)===null||s===void 0||s.appendChild(l),t!==""&&setTimeout(()=>{l.remove()},o)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function R7e(e){return e&&e.__esModule?e.default:e}function V7e(e,t){let r=ti(R7e(Xd),"@react-aria/calendar"),o=Yt(e),i=vC(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=vC(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);fL(()=>{t.isFocused||Jd(s)},[s]);let l=B7e(t);fL(()=>{l&&Jd(l,"polite",4e3)},[l]);let c=Xg([!!e.errorMessage,e.isInvalid,e.validationState]);yC.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:c,selectedDateDescription:l});let[u,d]=g.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&u&&(d(!1),t.setFocused(!0));let[p,m]=g.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&p&&(m(!1),t.setFocused(!0));let h=th({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:ct(o,h,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":r.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:b,onFocusChange:m},errorMessageProps:{id:c},title:i}}function G7e(e,t){return V7e(e,t)}function z7e(e,t){let{startDate:r=t.visibleRange.start,endDate:o=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=kr(),l=h=>{switch(h.key){case"Enter":case" ":h.preventDefault(),t.selectFocusedDate();break;case"PageUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousSection(h.shiftKey);break;case"PageDown":h.preventDefault(),h.stopPropagation(),t.focusNextSection(h.shiftKey);break;case"End":h.preventDefault(),h.stopPropagation(),t.focusSectionEnd();break;case"Home":h.preventDefault(),h.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":h.preventDefault(),h.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":h.preventDefault(),h.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":h.preventDefault(),h.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(h.preventDefault(),t.setAnchorDate(null));break}},c=vC(r,o,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:d}=yC.get(t),f=th({"aria-label":[u,c].filter(Boolean).join(", "),"aria-labelledby":d}),p=hn({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:m}=kr(),b=g.useMemo(()=>{let h=zd(G4(t.timeZone),m,i);return[...new Array(7).keys()].map(y=>{let $=h.add({days:y}).toDate(t.timeZone);return p.format($)})},[m,t.timeZone,p,i]);return{gridProps:ct(f,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:l,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b}}function Z7e(e){return e&&e.__esModule?e.default:e}function W7e(e,t,r){let{date:o,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:l}=yC.get(t),c=ti(Z7e(Xd),"@react-aria/calendar"),u=hn({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Yd(o),timeZone:t.timeZone}),d=t.isSelected(o),f=t.isCellFocused(o);i=i||t.isCellDisabled(o);let p=t.isCellUnavailable(o),m=!i&&!p,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&o.compare(t.highlightedRange.start)>=0&&o.compare(t.highlightedRange.end)<=0:t.value&&Mt(t.value,o));b&&(d=!0),o=bL(o,DRe);let h=g.useMemo(()=>o.toDate(t.timeZone),[o,t.timeZone]),y=SRe(o,t.timeZone),v=g.useMemo(()=>{let j="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Mt(o,t.value.start)||Mt(o,t.value.end))&&(j=l+", "),j+=u.format(h),y?j=c.format(d?"todayDateSelected":"todayDate",{date:j}):d&&(j=c.format("dateSelected",{date:j})),t.minValue&&Mt(o,t.minValue)?j+=", "+c.format("minimumDate"):t.maxValue&&Mt(o,t.maxValue)&&(j+=", "+c.format("maximumDate")),j},[u,h,c,d,y,o,t,l]),$="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?$=c.format("finishRangeSelectionPrompt"):$=c.format("startRangeSelectionPrompt"));let C=w4($),T=g.useRef(!1),x=g.useRef(!1),w=g.useRef(void 0),{pressProps:S,isPressed:P}=I4({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(j){if(t.isReadOnly){t.setFocusedDate(o);return}if("highlightedRange"in t&&!t.anchorDate&&(j.pointerType==="mouse"||j.pointerType==="touch")){if(t.highlightedRange&&!b){if(Mt(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setDragging(!0),x.current=!0;return}else if(Mt(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setDragging(!0),x.current=!0;return}}let V=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(o),t.setFocusedDate(o),T.current=!0};j.pointerType==="touch"?w.current=setTimeout(V,200):V()}},onPressEnd(){x.current=!1,T.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(o),t.setFocusedDate(o))},onPressUp(j){if(!t.isReadOnly&&("anchorDate"in t&&w.current&&(t.selectDate(o),t.setFocusedDate(o)),"anchorDate"in t))if(x.current)t.setAnchorDate(o);else if(t.anchorDate&&!T.current)t.selectDate(o),t.setFocusedDate(o);else if(j.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(o);let V=o.add({days:1});t.isInvalid(V)&&(V=o.subtract({days:1})),t.isInvalid(V)||t.setFocusedDate(V)}else j.pointerType==="virtual"&&(t.selectDate(o),t.setFocusedDate(o))}}),A;i||(A=Mt(o,t.focusedDate)?0:-1),g.useEffect(()=>{f&&r.current&&(Hi(r.current),FL()!=="pointer"&&document.activeElement===r.current&&hL(r.current,{containingElement:mL(r.current)}))},[f,r]);let I=hn({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),O=g.useMemo(()=>I.formatToParts(h).find(j=>j.type==="day").value,[I,h]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:ct(S,{onFocus(){i||t.setFocusedDate(o)},tabIndex:A,role:"button","aria-disabled":!m||void 0,"aria-label":v,"aria-invalid":b||void 0,"aria-describedby":[b?s:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(j){"highlightDate"in t&&(j.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(o)},onPointerDown(j){"releasePointerCapture"in j.target&&j.target.releasePointerCapture(j.pointerId)},onContextMenu(j){j.preventDefault()}}),isPressed:P,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:p,isOutsideVisibleRange:o.compare(t.visibleRange.start)<0||o.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:O}}const OO={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},BO={...OO,customError:!0,valid:!1},Kd={isInvalid:!1,validationDetails:OO,validationErrors:[]},q7e=g.createContext({}),Ph="__formValidationState"+Date.now();function Ih(e){if(e[Ph]){let{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:i,commitValidation:s}=e[Ph];return{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:i,commitValidation:s}}return U7e(e)}function U7e(e){let{isInvalid:t,validationState:r,name:o,value:i,builtinValidation:s,validate:l,validationBehavior:c="aria"}=e;r&&(t||(t=r==="invalid"));let u=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:BO}:null,d=g.useMemo(()=>{if(!l||i==null)return null;let O=H7e(l,i);return MO(O)},[l,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let f=g.useContext(q7e),p=g.useMemo(()=>o?Array.isArray(o)?o.flatMap(O=>CC(f[O])):CC(f[o]):[],[f,o]),[m,b]=g.useState(f),[h,y]=g.useState(!1);f!==m&&(b(f),y(!1));let v=g.useMemo(()=>MO(h?[]:p),[h,p]),$=g.useRef(Kd),[C,T]=g.useState(Kd),x=g.useRef(Kd),w=()=>{if(!S)return;P(!1);let O=d||s||$.current;xC(O,x.current)||(x.current=O,T(O))},[S,P]=g.useState(!1);return g.useEffect(w),{realtimeValidation:u||v||d||s||Kd,displayValidation:c==="native"?u||v||C:u||v||d||s||C,updateValidation(O){c==="aria"&&!xC(C,O)?T(O):$.current=O},resetValidation(){let O=Kd;xC(O,x.current)||(x.current=O,T(O)),c==="native"&&P(!1),y(!0)},commitValidation(){c==="native"&&P(!0),y(!0)}}}function CC(e){return e?Array.isArray(e)?e:[e]:[]}function H7e(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return CC(r)}return[]}function MO(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:BO}:null}function xC(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,o)=>r===t.validationErrors[o])&&Object.entries(e.validationDetails).every(([r,o])=>t.validationDetails[r]===o)}function FO(e,t,r){let{validationBehavior:o,focus:i}=e;La(()=>{if(o==="native"&&(r!=null&&r.current)&&!r.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Y7e(r.current))}});let s=ir(()=>{t.resetValidation()}),l=ir(u=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=r==null||(d=r.current)===null||d===void 0?void 0:d.form;if(!u.defaultPrevented&&r&&f&&J7e(f)===r.current){var p;i?i():(p=r.current)===null||p===void 0||p.focus(),nRe("keyboard")}u.preventDefault()}),c=ir(()=>{t.commitValidation()});g.useEffect(()=>{let u=r==null?void 0:r.current;if(!u)return;let d=u.form;return u.addEventListener("invalid",l),u.addEventListener("change",c),d==null||d.addEventListener("reset",s),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",c),d==null||d.removeEventListener("reset",s)}},[r,l,c,s,o])}function X7e(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Y7e(e){return{isInvalid:!e.validity.valid,validationDetails:X7e(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function J7e(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function K7e(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":i,labelElementType:s="label"}=e;t=Zr(t);let l=Zr(),c={};r?(o=o?`${l} ${o}`:l,c={id:l,htmlFor:s==="label"?t:void 0}):!o&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=th({id:t,"aria-label":i,"aria-labelledby":o});return{labelProps:c,fieldProps:u}}function wC(e){let{description:t,errorMessage:r,isInvalid:o,validationState:i}=e,{labelProps:s,fieldProps:l}=K7e(e),c=Xg([!!t,!!r,o,i]),u=Xg([!!t,!!r,o,i]);return l=ct(l,{"aria-describedby":[c,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:l,descriptionProps:{id:c},errorMessageProps:{id:u}}}function Q7e(e){let{minValue:t,maxValue:r,step:o,formatOptions:i,value:s,defaultValue:l=NaN,onChange:c,locale:u,isDisabled:d,isReadOnly:f}=e;s===null&&(s=NaN),s!==void 0&&!isNaN(s)&&(o!==void 0&&!isNaN(o)?s=to(s,t,r,o):s=_4(s,t,r)),isNaN(l)||(o!==void 0&&!isNaN(o)?l=to(l,t,r,o):l=_4(l,t,r));let[p,m]=Xi(s,isNaN(l)?NaN:l,c),[b,h]=g.useState(()=>isNaN(p)?"":new Dh(u,i).format(p)),y=g.useMemo(()=>new fC(u,i),[u,i]),v=g.useMemo(()=>y.getNumberingSystem(b),[y,b]),$=g.useMemo(()=>new Dh(u,{...i,numberingSystem:v}),[u,i,v]),C=g.useMemo(()=>$.resolvedOptions(),[$]),T=g.useCallback(B=>isNaN(B)||B===null?"":$.format(B),[$]),x=Ih({...e,value:p}),w=o!==void 0&&!isNaN(o)?o:1;C.style==="percent"&&(o===void 0||isNaN(o))&&(w=.01);let[S,P]=g.useState(p),[A,I]=g.useState(u),[O,j]=g.useState(i);(!Object.is(p,S)||u!==A||i!==O)&&(h(T(p)),P(p),I(u),j(i));let V=g.useMemo(()=>y.parse(b),[y,b]),k=()=>{if(!b.length){m(NaN),h(s===void 0?"":T(p));return}if(isNaN(V)){h(T(p));return}let B;o===void 0||isNaN(o)?B=_4(V,t,r):B=to(V,t,r,o),B=y.parse(T(B)),m(B),h(T(s===void 0?B:p))},Z=(B,L=0)=>{let E=V;if(isNaN(E)){let _=isNaN(L)?0:L;return to(_,t,r,w)}else{let _=to(E,t,r,w);return B==="+"&&_>E||B==="-"&&_<E?_:to(AC(B,E,w),t,r,w)}},U=()=>{let B=Z("+",t);B===p&&h(T(B)),m(B),x.commitValidation()},X=()=>{let B=Z("-",r);B===p&&h(T(B)),m(B),x.commitValidation()},ee=()=>{r!=null&&(m(to(r,t,r,w)),x.commitValidation())},te=()=>{t!=null&&(m(t),x.commitValidation())},de=g.useMemo(()=>!d&&!f&&(isNaN(V)||r===void 0||isNaN(r)||to(V,t,r,w)>V||AC("+",V,w)<=r),[d,f,t,r,w,V]),G=g.useMemo(()=>!d&&!f&&(isNaN(V)||t===void 0||isNaN(t)||to(V,t,r,w)<V||AC("-",V,w)>=t),[d,f,t,r,w,V]);return{...x,validate:B=>y.isValidPartialNumber(B,t,r),increment:U,incrementToMax:ee,decrement:X,decrementToMin:te,canIncrement:de,canDecrement:G,minValue:t,maxValue:r,numberValue:V,setNumberValue:m,setInputValue:h,inputValue:b,commit:k}}function AC(e,t,r){let o=e==="+"?t+r:t-r;if(t%1!==0||r%1!==0){const i=t.toString().split("."),s=r.toString().split("."),l=i[1]&&i[1].length||0,c=s[1]&&s[1].length||0,u=Math.pow(10,Math.max(l,c));t=Math.round(t*u),r=Math.round(r*u),o=e==="+"?t+r:t-r,o/=u}return o}const RO={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function eVe(e={}){let{style:t,isFocusable:r}=e,[o,i]=g.useState(!1),{focusWithinProps:s}=Fd({isDisabled:!r,onFocusWithinChange:c=>i(c)}),l=g.useMemo(()=>o?t:t?{...RO,...t}:RO,[o]);return{visuallyHiddenProps:{...s,style:l}}}function VO(e){let{children:t,elementType:r="div",isFocusable:o,style:i,...s}=e,{visuallyHiddenProps:l}=eVe(e);return g.createElement(r,ct(s,l),t)}function tVe(e,t){let{inputElementType:r="input",isDisabled:o=!1,isRequired:i=!1,isReadOnly:s=!1,type:l="text",validationBehavior:c="aria"}=e,[u,d]=Xi(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=VL(e,t),p=Ih({...e,value:u}),{isInvalid:m,validationErrors:b,validationDetails:h}=p.displayValidation,{labelProps:y,fieldProps:v,descriptionProps:$,errorMessageProps:C}=wC({...e,isInvalid:m,errorMessage:e.errorMessage||b}),T=Yt(e,{labelable:!0});const x={type:l,pattern:e.pattern};return E4(t,u,d),FO(e,p,t),g.useEffect(()=>{if(t.current instanceof Wr(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:y,inputProps:ct(T,r==="input"?x:void 0,{disabled:o,readOnly:s,required:i&&c==="native","aria-required":i&&c==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:u,onChange:w=>d(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(g.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...v}),descriptionProps:$,errorMessageProps:C,isInvalid:m,validationErrors:b,validationDetails:h}}function GO(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function rVe(e,t,r){let o=ir(p=>{let m=r.current;if(!m)return;let b=null;switch(p.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":b=m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentForward":b=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd+1):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentBackward":b=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart-1)+m.value.slice(m.selectionStart):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":b=m.value.slice(m.selectionStart);break;default:p.data!=null&&(b=m.value.slice(0,m.selectionStart)+p.data+m.value.slice(m.selectionEnd));break}(b==null||!t.validate(b))&&p.preventDefault()});g.useEffect(()=>{if(!GO()||!r.current)return;let p=r.current;return p.addEventListener("beforeinput",o,!1),()=>{p.removeEventListener("beforeinput",o,!1)}},[r,o]);let i=GO()?null:p=>{let m=p.target.value.slice(0,p.target.selectionStart)+p.data+p.target.value.slice(p.target.selectionEnd);t.validate(m)||p.preventDefault()},{labelProps:s,inputProps:l,descriptionProps:c,errorMessageProps:u,...d}=tVe(e,r),f=g.useRef(null);return{inputProps:ct(l,{onBeforeInput:i,onCompositionStart(){let{value:p,selectionStart:m,selectionEnd:b}=r.current;f.current={value:p,selectionStart:m,selectionEnd:b}},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:p,selectionStart:m,selectionEnd:b}=f.current;r.current.value=p,r.current.setSelectionRange(m,b),t.setInputValue(p)}}}),labelProps:s,descriptionProps:c,errorMessageProps:u,...d}}var zO={};zO={Empty:"فارغ"};var ZO={};ZO={Empty:"Изпразни"};var WO={};WO={Empty:"Prázdné"};var qO={};qO={Empty:"Tom"};var UO={};UO={Empty:"Leer"};var HO={};HO={Empty:"Άδειο"};var XO={};XO={Empty:"Empty"};var YO={};YO={Empty:"Vacío"};var JO={};JO={Empty:"Tühjenda"};var KO={};KO={Empty:"Tyhjä"};var QO={};QO={Empty:"Vide"};var e9={};e9={Empty:"ריק"};var t9={};t9={Empty:"Prazno"};var r9={};r9={Empty:"Üres"};var a9={};a9={Empty:"Vuoto"};var n9={};n9={Empty:"空"};var o9={};o9={Empty:"비어 있음"};var i9={};i9={Empty:"Tuščias"};var s9={};s9={Empty:"Tukšs"};var l9={};l9={Empty:"Tom"};var c9={};c9={Empty:"Leeg"};var u9={};u9={Empty:"Pusty"};var d9={};d9={Empty:"Vazio"};var f9={};f9={Empty:"Vazio"};var p9={};p9={Empty:"Gol"};var m9={};m9={Empty:"Не заполнено"};var g9={};g9={Empty:"Prázdne"};var h9={};h9={Empty:"Prazen"};var b9={};b9={Empty:"Prazno"};var y9={};y9={Empty:"Tomt"};var v9={};v9={Empty:"Boş"};var $9={};$9={Empty:"Пусто"};var C9={};C9={Empty:"空"};var x9={};x9={Empty:"空白"};var w9={};w9={"ar-AE":zO,"bg-BG":ZO,"cs-CZ":WO,"da-DK":qO,"de-DE":UO,"el-GR":HO,"en-US":XO,"es-ES":YO,"et-EE":JO,"fi-FI":KO,"fr-FR":QO,"he-IL":e9,"hr-HR":t9,"hu-HU":r9,"it-IT":a9,"ja-JP":n9,"ko-KR":o9,"lt-LT":i9,"lv-LV":s9,"nb-NO":l9,"nl-NL":c9,"pl-PL":u9,"pt-BR":d9,"pt-PT":f9,"ro-RO":p9,"ru-RU":m9,"sk-SK":g9,"sl-SI":h9,"sr-SP":b9,"sv-SE":y9,"tr-TR":v9,"uk-UA":$9,"zh-CN":C9,"zh-TW":x9};function aVe(e){return e&&e.__esModule?e.default:e}function A9(e){const t=g.useRef(void 0);let{value:r,textValue:o,minValue:i,maxValue:s,isDisabled:l,isReadOnly:c,isRequired:u,onIncrement:d,onIncrementPage:f,onDecrement:p,onDecrementPage:m,onDecrementToMin:b,onIncrementToMax:h}=e;const y=ti(aVe(w9),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);g.useEffect(()=>()=>v(),[]);let $=j=>{if(!(j.ctrlKey||j.metaKey||j.shiftKey||j.altKey||c))switch(j.key){case"PageUp":if(f){j.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(j.preventDefault(),d==null||d());break;case"PageDown":if(m){j.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":p&&(j.preventDefault(),p==null||p());break;case"Home":b&&(j.preventDefault(),b==null||b());break;case"End":h&&(j.preventDefault(),h==null||h());break}},C=g.useRef(!1),T=()=>{C.current=!0},x=()=>{C.current=!1},w=o===""?y.format("Empty"):(o||`${r}`).replace("-","−");g.useEffect(()=>{C.current&&(M7e("assertive"),Jd(w,"assertive"))},[w]);const S=ir(j=>{v(),d==null||d(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||r===void 0||isNaN(r)||r<s)&&S(60)},j)}),P=ir(j=>{v(),p==null||p(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||r===void 0||isNaN(r)||r>i)&&P(60)},j)});let A=j=>{j.preventDefault()},{addGlobalListener:I,removeAllGlobalListeners:O}=eh();return{spinButtonProps:{role:"spinbutton","aria-valuenow":r!==void 0&&!isNaN(r)?r:void 0,"aria-valuetext":w,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":l||void 0,"aria-readonly":c||void 0,"aria-required":u||void 0,onKeyDown:$,onFocus:T,onBlur:x},incrementButtonProps:{onPressStart:()=>{S(400),I(window,"contextmenu",A)},onPressEnd:()=>{v(),O()},onFocus:T,onBlur:x},decrementButtonProps:{onPressStart:()=>{P(400),I(window,"contextmenu",A)},onPressEnd:()=>{v(),O()},onFocus:T,onBlur:x}}}var E9={};E9={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var T9={};T9={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var _9={};_9={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var D9={};D9={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var S9={};S9={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var P9={};P9={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var I9={};I9={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var j9={};j9={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var k9={};k9={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var N9={};N9={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var L9={};L9={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var O9={};O9={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var B9={};B9={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var M9={};M9={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var F9={};F9={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var R9={};R9={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var V9={};V9={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var G9={};G9={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var z9={};z9={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Z9={};Z9={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var W9={};W9={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var q9={};q9={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var U9={};U9={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var H9={};H9={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var X9={};X9={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Y9={};Y9={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var J9={};J9={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var K9={};K9={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Q9={};Q9={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var eB={};eB={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var tB={};tB={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var rB={};rB={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var aB={};aB={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var nB={};nB={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var oB={};oB={"ar-AE":E9,"bg-BG":T9,"cs-CZ":_9,"da-DK":D9,"de-DE":S9,"el-GR":P9,"en-US":I9,"es-ES":j9,"et-EE":k9,"fi-FI":N9,"fr-FR":L9,"he-IL":O9,"hr-HR":B9,"hu-HU":M9,"it-IT":F9,"ja-JP":R9,"ko-KR":V9,"lt-LT":G9,"lv-LV":z9,"nb-NO":Z9,"nl-NL":W9,"pl-PL":q9,"pt-BR":U9,"pt-PT":H9,"ro-RO":X9,"ru-RU":Y9,"sk-SK":J9,"sl-SI":K9,"sr-SP":Q9,"sv-SE":eB,"tr-TR":tB,"uk-UA":rB,"zh-CN":aB,"zh-TW":nB};function nVe(e){return e&&e.__esModule?e.default:e}function oVe(e,t,r){let{id:o,decrementAriaLabel:i,incrementAriaLabel:s,isDisabled:l,isReadOnly:c,isRequired:u,minValue:d,maxValue:f,autoFocus:p,label:m,formatOptions:b,onBlur:h=()=>{},onFocus:y,onFocusChange:v,onKeyDown:$,onKeyUp:C,description:T,errorMessage:x,isWheelDisabled:w,...S}=e,{increment:P,incrementToMax:A,decrement:I,decrementToMin:O,numberValue:j,inputValue:V,commit:k,commitValidation:Z}=t;const U=ti(nVe(oB),"@react-aria/numberfield");let X=Zr(o),{focusProps:ee}=B4({onBlur(){k()}}),te=Y5(b),de=g.useMemo(()=>te.resolvedOptions(),[te]),G=Y5({...b,currencySign:void 0}),N=g.useMemo(()=>isNaN(j)?"":G.format(j),[G,j]),{spinButtonProps:B,incrementButtonProps:L,decrementButtonProps:E}=A9({isDisabled:l,isReadOnly:c,isRequired:u,maxValue:f,minValue:d,onIncrement:P,onIncrementToMax:A,onDecrement:I,onDecrementToMin:O,value:j,textValue:N}),[_,M]=g.useState(!1),{focusWithinProps:z}=Fd({isDisabled:l,onFocusWithinChange:M}),R=g.useCallback(Hr=>{Math.abs(Hr.deltaY)<=Math.abs(Hr.deltaX)||(Hr.deltaY>0?P():Hr.deltaY<0&&I())},[I,P]);fRe({onScroll:R,isDisabled:w||l||c||!_},r);var Q;let fe=((Q=de.maximumFractionDigits)!==null&&Q!==void 0?Q:0)>0,H=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,je="numeric";sL()?H?je="text":fe&&(je="decimal"):v4()&&(H?je="numeric":fe&&(je="decimal"));let ft=Hr=>{t.validate(Hr)&&t.setInputValue(Hr)},Et=Yt(e),Cr=g.useCallback(Hr=>{Hr.key==="Enter"?(k(),Z()):Hr.continuePropagation()},[k,Z]),{isInvalid:Nr,validationErrors:sr,validationDetails:Ft}=t.displayValidation,{labelProps:at,inputProps:Ze,descriptionProps:lr,errorMessageProps:fa}=rVe({...S,...Et,name:void 0,label:m,autoFocus:p,isDisabled:l,isReadOnly:c,isRequired:u,validate:void 0,[Ph]:t,value:V,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:X,type:"text",inputMode:je,onChange:ft,onBlur:h,onFocus:y,onFocusChange:v,onKeyDown:g.useMemo(()=>b4(Cr,$),[Cr,$]),onKeyUp:C,description:T,errorMessage:x},t,r);E4(r,t.numberValue,t.setNumberValue);let Ur=ct(B,ee,Ze,{role:null,"aria-roledescription":Qg()?null:U.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Ur["aria-required"]=void 0);let vn=Hr=>{var ix;document.activeElement!==r.current&&(Hr.pointerType==="mouse"?(ix=r.current)===null||ix===void 0||ix.focus():Hr.target.focus())},pt=e["aria-label"]||(typeof e.label=="string"?e.label:""),Dt;pt||(Dt=e.label!=null?at.id:e["aria-labelledby"]);let pa=Zr(),os=Zr(),gf=ct(L,{"aria-label":s||U.format("increase",{fieldLabel:pt}).trim(),id:Dt&&!s?pa:null,"aria-labelledby":Dt&&!s?`${pa} ${Dt}`:null,"aria-controls":X,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:vn}),UZe=ct(E,{"aria-label":i||U.format("decrease",{fieldLabel:pt}).trim(),id:Dt&&!i?os:null,"aria-labelledby":Dt&&!i?`${os} ${Dt}`:null,"aria-controls":X,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:vn});return{groupProps:{...z,role:"group","aria-disabled":l,"aria-invalid":Nr?"true":void 0},labelProps:at,inputProps:Ur,incrementButtonProps:gf,decrementButtonProps:UZe,errorMessageProps:fa,descriptionProps:lr,isInvalid:Nr,validationErrors:sr,validationDetails:Ft}}const iVe=g.createContext(null);function sVe(){let e=g.useContext(iVe),t=e==null?void 0:e.setContain;La(()=>{t==null||t(!0)},[t])}var iB={};iB={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var sB={};sB={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var lB={};lB={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var cB={};cB={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var uB={};uB={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var dB={};dB={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var fB={};fB={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var pB={};pB={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var mB={};mB={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var gB={};gB={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var hB={};hB={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var bB={};bB={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var yB={};yB={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var vB={};vB={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var $B={};$B={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var CB={};CB={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var xB={};xB={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var wB={};wB={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var AB={};AB={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var EB={};EB={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var TB={};TB={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var _B={};_B={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var DB={};DB={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var SB={};SB={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var PB={};PB={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var IB={};IB={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var jB={};jB={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var kB={};kB={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var NB={};NB={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var LB={};LB={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var OB={};OB={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var BB={};BB={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var MB={};MB={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var FB={};FB={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var jh={};jh={"ar-AE":iB,"bg-BG":sB,"cs-CZ":lB,"da-DK":cB,"de-DE":uB,"el-GR":dB,"en-US":fB,"es-ES":pB,"et-EE":mB,"fi-FI":gB,"fr-FR":hB,"he-IL":bB,"hr-HR":yB,"hu-HU":vB,"it-IT":$B,"ja-JP":CB,"ko-KR":xB,"lt-LT":wB,"lv-LV":AB,"nb-NO":EB,"nl-NL":TB,"pl-PL":_B,"pt-BR":DB,"pt-PT":SB,"ro-RO":PB,"ru-RU":IB,"sk-SK":jB,"sl-SI":kB,"sr-SP":NB,"sv-SE":LB,"tr-TR":OB,"uk-UA":BB,"zh-CN":MB,"zh-TW":FB};function RB(e,t,r){let{direction:o}=kr(),i=g.useMemo(()=>gC(t),[t]),s=u=>{if(u.currentTarget.contains(u.target)&&(u.altKey&&(u.key==="ArrowDown"||u.key==="ArrowUp")&&"setOpen"in e&&(u.preventDefault(),u.stopPropagation(),e.setOpen(!0)),!r))switch(u.key){case"ArrowLeft":if(u.preventDefault(),u.stopPropagation(),o==="rtl"){if(t.current){let d=u.target,f=VB(t.current,d.getBoundingClientRect().left,-1);f&&f.focus()}}else i.focusPrevious();break;case"ArrowRight":if(u.preventDefault(),u.stopPropagation(),o==="rtl"){if(t.current){let d=u.target,f=VB(t.current,d.getBoundingClientRect().left,1);f&&f.focus()}}else i.focusNext();break}},l=()=>{var u;if(!t.current)return;let d=(u=window.event)===null||u===void 0?void 0:u.target,f=Yl(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let p;do p=f.lastChild(),p&&(d=p);while(p)}for(;d!=null&&d.hasAttribute("data-placeholder");){let p=f.previousNode();if(p&&p.hasAttribute("data-placeholder"))d=p;else break}d&&d.focus()},{pressProps:c}=I4({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(u){u.pointerType==="mouse"&&l()},onPress(u){u.pointerType!=="mouse"&&l()}});return ct(c,{onKeyDown:s})}function VB(e,t,r){let o=Yl(e,{tabbable:!0}),i=o.nextNode(),s=null,l=1/0;for(;i;){let u=i.getBoundingClientRect().left-t,d=Math.abs(u);Math.sign(u)===r&&d<l&&(s=i,l=d),i=o.nextNode()}return s}function lVe(e){return e&&e.__esModule?e.default:e}const GB=new WeakMap,kh="__role_"+Date.now(),cVe="__focusManager_"+Date.now();function uVe(e,t,r){var o;let{isInvalid:i,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:f}=wC({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),p=g.useRef(null),{focusWithinProps:m}=Fd({...e,onFocusWithin(O){var j;p.current=t.value,(j=e.onFocus)===null||j===void 0||j.call(e,O)},onBlurWithin:O=>{var j;t.confirmPlaceholder(),t.value!==p.current&&t.commitValidation(),(j=e.onBlur)===null||j===void 0||j.call(e,O)},onFocusWithinChange:e.onFocusChange}),b=ti(lVe(jh),"@react-aria/datepicker"),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",y=t.maxGranularity==="hour"?"time":"date",v=t.value?b.format(h,{[y]:t.formatValue({month:"long"})}):"",$=w4(v),C=e[kh]==="presentation"?u["aria-describedby"]:[$["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,T=e[cVe],x=g.useMemo(()=>T||gC(r),[T,r]),w=RB(t,r,e[kh]==="presentation");GB.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:x});let S=g.useRef(e.autoFocus),P;e[kh]==="presentation"?P={role:"presentation"}:P=ct(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),g.useEffect(()=>{S.current&&x.focusFirst(),S.current=!1},[x]),E4(e.inputRef,t.value,t.setValue),FO({...e,focus(){x.focusFirst()}},t,e.inputRef);let A={type:"hidden",name:e.name,value:((o=t.value)===null||o===void 0?void 0:o.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(A.type="text",A.hidden=!0,A.required=e.isRequired,A.onChange=()=>{});let I=Yt(e);return{labelProps:{...c,onClick:()=>{x.focusFirst()}},fieldProps:ct(I,P,w,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)},style:{unicodeBidi:"isolate"}}),inputProps:A,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:s,validationDetails:l}}function dVe(e){return e&&e.__esModule?e.default:e}function fVe(e,t,r){let o=Zr(),i=Zr(),s=Zr(),l=ti(dVe(jh),"@react-aria/datepicker"),{isInvalid:c,validationErrors:u,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:p,descriptionProps:m,errorMessageProps:b}=wC({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||u}),h=RB(t,r),y=p["aria-labelledby"]||p.id,{locale:v}=kr(),$=t.formatValue(v,{month:"long"}),C=$?l.format("selectedDateDescription",{date:$}):"",T=w4(C),x=[T["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=Yt(e),S=g.useMemo(()=>gC(r),[r]),P=g.useRef(!1),{focusWithinProps:A}=Fd({...e,isDisabled:t.isOpen,onBlurWithin:I=>{let O=document.getElementById(i);if(!(O!=null&&O.contains(I.relatedTarget))){var j,V;P.current=!1,(j=e.onBlur)===null||j===void 0||j.call(e,I),(V=e.onFocusChange)===null||V===void 0||V.call(e,!1)}},onFocusWithin:I=>{if(!P.current){var O,j;P.current=!0,(O=e.onFocus)===null||O===void 0||O.call(e,I),(j=e.onFocusChange)===null||j===void 0||j.call(e,!0)}}});return{groupProps:ct(w,h,p,T,A,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":y,"aria-describedby":x,onKeyDown(I){t.isOpen||e.onKeyDown&&e.onKeyDown(I)},onKeyUp(I){t.isOpen||e.onKeyUp&&e.onKeyUp(I)}}),labelProps:{...f,onClick:()=>{S.focusFirst()}},fieldProps:{...p,id:s,[kh]:"presentation","aria-describedby":x,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Ph]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:b,buttonProps:{...T,id:o,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${o} ${y}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${o} ${y}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:c,validationErrors:u,validationDetails:d}}function pVe(e){return e&&e.__esModule?e.default:e}function mVe(){let{locale:e}=kr(),t=YL(pVe(jh),"@react-aria/datepicker");return g.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new gVe(e,t)}},[e,t])}class gVe{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,r){this.locale=t,this.dictionary=r}}function hVe(e,t,r){let o=g.useRef(""),{locale:i,direction:s}=kr(),l=mVe(),{ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d,focusManager:f}=GB.get(t),p=e.isPlaceholder?"":e.text,m=g.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=hn({month:"long",timeZone:m.timeZone}),h=hn({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(e.type==="month"&&!e.isPlaceholder){let G=b.format(t.dateValue);p=G!==p?`${p} – ${G}`:G}else e.type==="hour"&&!e.isPlaceholder&&(p=h.format(t.dateValue));let{spinButtonProps:y}=A9({value:e.value,textValue:p,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{o.current="",t.increment(e.type)},onDecrement:()=>{o.current="",t.decrement(e.type)},onIncrementPage:()=>{o.current="",t.incrementPage(e.type)},onDecrementPage:()=>{o.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{o.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{o.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),v=g.useMemo(()=>new fC(i,{maximumFractionDigits:0}),[i]),$=()=>{if(e.text===e.placeholder&&f.focusPrevious(),v.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let G=e.text.slice(0,-1),N=v.parse(G);G=N===0?"":G,G.length===0||N===0?t.clearSegment(e.type):t.setSegment(e.type,N),o.current=G}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=G=>{if(G.key==="a"&&(Fl()?G.metaKey:G.ctrlKey)&&G.preventDefault(),!(G.ctrlKey||G.metaKey||G.shiftKey||G.altKey))switch(G.key){case"Backspace":case"Delete":G.preventDefault(),G.stopPropagation(),$();break}},{startsWith:T}=k7e({sensitivity:"base"}),x=hn({hour:"numeric",hour12:!0}),w=g.useMemo(()=>{let G=new Date;return G.setHours(0),x.formatToParts(G).find(N=>N.type==="dayPeriod").value},[x]),S=g.useMemo(()=>{let G=new Date;return G.setHours(12),x.formatToParts(G).find(N=>N.type==="dayPeriod").value},[x]),P=hn({year:"numeric",era:"narrow",timeZone:"UTC"}),A=g.useMemo(()=>{if(e.type!=="era")return[];let G=At(new Lt(1,1,1),t.calendar),N=t.calendar.getEras().map(L=>{let E=G.set({year:1,month:1,day:1,era:L}).toDate("UTC"),M=P.formatToParts(E).find(z=>z.type==="era").value;return{era:L,formatted:M}}),B=bVe(N.map(L=>L.formatted));if(B)for(let L of N)L.formatted=L.formatted.slice(B);return N},[P,t.calendar,e.type]),I=G=>{if(t.isDisabled||t.isReadOnly)return;let N=o.current+G;switch(e.type){case"dayPeriod":if(T(w,G))t.setSegment("dayPeriod",0);else if(T(S,G))t.setSegment("dayPeriod",12);else break;f.focusNext();break;case"era":{let B=A.find(L=>T(L.formatted,G));B&&(t.setSegment("era",B.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!v.isValidPartialNumber(N))return;let B=v.parse(N),L=B,E=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":B>11&&(L=v.parse(G));break;case"h12":E=!1,B>12&&(L=v.parse(G));break}e.value!==void 0&&e.value>=12&&B>1&&(B+=12)}else e.maxValue!==void 0&&B>e.maxValue&&(L=v.parse(G));if(isNaN(B))return;let _=L!==0||E;_&&t.setSegment(e.type,L),e.maxValue!==void 0&&(+(B+"0")>e.maxValue||N.length>=String(e.maxValue).length)?(o.current="",_&&f.focusNext()):o.current=N;break}}},O=()=>{o.current="",r.current&&hL(r.current,{containingElement:mL(r.current)});let G=window.getSelection();G==null||G.collapse(r.current)},j=g.useRef(typeof document<"u"?document:null);rh(j,"selectionchange",()=>{var G;let N=window.getSelection();N!=null&&N.anchorNode&&(!((G=r.current)===null||G===void 0)&&G.contains(N==null?void 0:N.anchorNode))&&N.collapse(r.current)});let V=g.useRef("");rh(r,"beforeinput",G=>{if(r.current)switch(G.preventDefault(),G.inputType){case"deleteContentBackward":case"deleteContentForward":v.isValidPartialNumber(e.text)&&!t.isReadOnly&&$();break;case"insertCompositionText":V.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:G.data!=null&&I(G.data);break}}),rh(r,"input",G=>{let{inputType:N,data:B}=G;switch(N){case"insertCompositionText":r.current&&(r.current.textContent=V.current),B!=null&&(T(w,B)||T(S,B))&&I(B);break}}),La(()=>{let G=r.current;return()=>{document.activeElement===G&&(f.focusPrevious()||f.focusNext())}},[r,f]);let k=Qg()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},Z=g.useMemo(()=>t.segments.find(G=>G.isEditable),[t.segments]);e!==Z&&!t.isInvalid&&(d=void 0);let U=Zr(),X=!t.isDisabled&&!t.isReadOnly&&e.isEditable,ee=e.type==="literal"?"":l.of(e.type),te=th({"aria-label":`${ee}${c?`, ${c}`:""}${u?", ":""}`,"aria-labelledby":u});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let de={caretColor:"transparent"};if(s==="rtl"){de.unicodeBidi="embed";let G=m[e.type];(G==="numeric"||G==="2-digit")&&(de.direction="ltr")}return{segmentProps:ct(y,te,{id:U,...k,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:X,suppressContentEditableWarning:X,spellCheck:X?"false":void 0,autoCorrect:X?"off":void 0,[parseInt(g.version,10)>=17?"enterKeyHint":"enterkeyhint"]:X?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!X?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:O,style:de,onPointerDown(G){G.stopPropagation()},onMouseDown(G){G.stopPropagation()}})}}function bVe(e){e.sort();let t=e[0],r=e[e.length-1];for(let o=0;o<t.length;o++)if(t[o]!==r[o])return o;return 0}function yVe(e,t){let{role:r="dialog"}=e,o=Xg();o=e["aria-label"]?void 0:o;let i=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){dh(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),dh(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),sVe(),{dialogProps:{...Yt(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:o}}}const EC=g.createContext({});let vVe=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,...i}=e;return i};const zB=CL(function(t,r){[t,r]=ao(t,r,EC);let{hoverProps:o,isHovered:i}=Rd(t),{isFocused:s,isFocusVisible:l,focusProps:c}=Jl({isTextInput:!0,autoFocus:t.autoFocus}),u=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ro({...t,values:{isHovered:i,isFocused:s,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return g.createElement("input",{...ct(vVe(t),c,o),...d,ref:r,"data-focused":s||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})}),ZB=g.createContext({}),$Ve=g.createContext(null),CVe=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Qd=g.createContext({}),Nh=CL(function(t,r){[t,r]=ao(t,r,Qd),t=xVe(t);let o=t,{isPending:i}=o,{buttonProps:s,isPressed:l}=N7e(t,r),{focusProps:c,isFocused:u,isFocusVisible:d}=Jl(t),{hoverProps:f,isHovered:p}=Rd({...t,isDisabled:t.isDisabled||i}),m={isHovered:p,isPressed:(o.isPressed||l)&&!i,isFocused:u,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:i??!1},b=ro({...t,values:m,defaultClassName:"react-aria-Button"}),h=Zr(s.id),y=Zr(),v=s["aria-labelledby"];i&&(v?v=`${v} ${y}`:s["aria-label"]&&(v=`${h} ${y}`));let $=g.useRef(i);return g.useEffect(()=>{let C={"aria-labelledby":v||h};(!$.current&&u&&i||$.current&&u&&!i)&&Jd(C,"assertive"),$.current=i},[i,u,v,h]),g.createElement("button",{...Yt(t,{propNames:CVe}),...ct(s,c,f),...b,type:s.type==="submit"&&i?"button":s.type,id:h,ref:r,"aria-labelledby":v,slot:t.slot||void 0,"aria-disabled":i?"true":s["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":p||void 0,"data-focused":u||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},g.createElement($Ve.Provider,{value:{id:y}},b.children))});function xVe(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const TC=g.createContext({}),WB=g.createContext(null);function _C(e,t,r){return t!=null&&e.compare(t)<0||r!=null&&e.compare(r)>0}function qB(e,t,r,o,i){let s={};for(let c in t)s[c]=Math.floor(t[c]/2),s[c]>0&&t[c]%2===0&&s[c]--;let l=as(e,t,r).subtract(s);return ef(e,l,t,r,o,i)}function as(e,t,r,o,i){let s=e;return t.years?s=IRe(e):t.months?s=es(e):t.weeks&&(s=zd(e,r)),ef(e,s,t,r,o,i)}function DC(e,t,r,o,i){let s={...t};s.days?s.days--:s.weeks?s.weeks--:s.months?s.months--:s.years&&s.years--;let l=as(e,t,r).subtract(s);return ef(e,l,t,r,o,i)}function ef(e,t,r,o,i,s){if(i&&e.compare(i)>=0){let l=n5(t,as(Oa(i),r,o));l&&(t=l)}if(s&&e.compare(s)<=0){let l=a5(t,DC(Oa(s),r,o));l&&(t=l)}return t}function ns(e,t,r){if(t){let o=n5(e,Oa(t));o&&(e=o)}if(r){let o=a5(e,Oa(r));o&&(e=o)}return e}function wVe(e,t,r){if(!r)return e;for(;e.compare(t)>=0&&r(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function AVe(e){let t=g.useMemo(()=>new so(e.locale),[e.locale]),r=g.useMemo(()=>t.resolvedOptions(),[t]),{locale:o,createCalendar:i,visibleDuration:s={months:1},minValue:l,maxValue:c,selectionAlignment:u,isDateUnavailable:d,pageBehavior:f="visible",firstDayOfWeek:p}=e,m=g.useMemo(()=>i(r.calendar),[i,r.calendar]);var b;let[h,y]=Xi(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),v=g.useMemo(()=>h?At(Oa(h),m):null,[h,m]),$=g.useMemo(()=>h&&"timeZone"in h?h.timeZone:r.timeZone,[h,r.timeZone]),C=g.useMemo(()=>e.focusedValue?ns(At(Oa(e.focusedValue),m),l,c):void 0,[e.focusedValue,m,l,c]),T=g.useMemo(()=>ns(e.defaultFocusedValue?At(Oa(e.defaultFocusedValue),m):v||At(G4($),m),l,c),[e.defaultFocusedValue,v,$,m,l,c]),[x,w]=Xi(C,T,e.onFocusChange),[S,P]=g.useState(()=>{switch(u){case"start":return as(x,s,o,l,c);case"end":return DC(x,s,o,l,c);case"center":default:return qB(x,s,o,l,c)}}),[A,I]=g.useState(e.autoFocus||!1),O=g.useMemo(()=>{let N={...s};return N.days?N.days--:N.days=-1,S.add(N)},[S,s]),[j,V]=g.useState(m.identifier);if(m.identifier!==j){let N=At(x,m);P(qB(N,s,o,l,c)),w(N),V(m.identifier)}_C(x,l,c)?w(ns(x,l,c)):x.compare(S)<0?P(DC(x,s,o,l,c)):x.compare(O)>0&&P(as(x,s,o,l,c));function k(N){N=ns(N,l,c),w(N)}function Z(N){if(!e.isDisabled&&!e.isReadOnly){let B=N;if(B===null){y(null);return}if(B=ns(B,l,c),B=wVe(B,S,d),!B)return;B=At(B,(h==null?void 0:h.calendar)||new qr),h&&"hour"in h?y(h.set(B)):y(B)}}let U=g.useMemo(()=>v?d&&d(v)?!0:_C(v,l,c):!1,[v,d,l,c]),X=e.isInvalid||e.validationState==="invalid"||U,ee=X?"invalid":null,te=g.useMemo(()=>f==="visible"?s:SC(s),[f,s]);var de,G;return{isDisabled:(de=e.isDisabled)!==null&&de!==void 0?de:!1,isReadOnly:(G=e.isReadOnly)!==null&&G!==void 0?G:!1,value:v,setValue:Z,visibleRange:{start:S,end:O},minValue:l,maxValue:c,focusedDate:x,timeZone:$,validationState:ee,isValueInvalid:X,setFocusedDate(N){k(N),I(!0)},focusNextDay(){k(x.add({days:1}))},focusPreviousDay(){k(x.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&k(x.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&k(x.subtract({weeks:1}))},focusNextPage(){let N=S.add(te);w(ns(x.add(te),l,c)),P(as(ef(x,N,te,o,l,c),te,o))},focusPreviousPage(){let N=S.subtract(te);w(ns(x.subtract(te),l,c)),P(as(ef(x,N,te,o,l,c),te,o))},focusSectionStart(){s.days?k(S):s.weeks?k(zd(x,o)):(s.months||s.years)&&k(es(x))},focusSectionEnd(){s.days?k(O):s.weeks?k(NRe(x,o)):(s.months||s.years)&&k(mh(x))},focusNextSection(N){if(!N&&!s.days){k(x.add(SC(s)));return}s.days?this.focusNextPage():s.weeks?k(x.add({months:1})):(s.months||s.years)&&k(x.add({years:1}))},focusPreviousSection(N){if(!N&&!s.days){k(x.subtract(SC(s)));return}s.days?this.focusPreviousPage():s.weeks?k(x.subtract({months:1})):(s.months||s.years)&&k(x.subtract({years:1}))},selectFocusedDate(){d&&d(x)||Z(x)},selectDate(N){Z(N)},isFocused:A,setFocused:I,isInvalid(N){return _C(N,l,c)},isSelected(N){return v!=null&&Mt(N,v)&&!this.isCellDisabled(N)&&!this.isCellUnavailable(N)},isCellFocused(N){return A&&x&&Mt(N,x)},isCellDisabled(N){return e.isDisabled||N.compare(S)<0||N.compare(O)>0||this.isInvalid(N)},isCellUnavailable(N){return e.isDateUnavailable?e.isDateUnavailable(N):!1},isPreviousVisibleRangeInvalid(){let N=S.subtract({days:1});return Mt(N,S)||this.isInvalid(N)},isNextVisibleRangeInvalid(){let N=O.add({days:1});return Mt(N,O)||this.isInvalid(N)},getDatesInWeek(N,B=S){let L=B.add({weeks:N}),E=[];L=zd(L,o,p);let _=V4(L,o,p);for(let M=0;M<_;M++)E.push(null);for(;E.length<7;){E.push(L);let M=L.add({days:1});if(Mt(L,M))break;L=M}for(;E.length<7;)E.push(null);return E}}}function SC(e){let t={...e};for(let r in e)t[r]=1;return t}function EVe(e){let[t,r]=Xi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=g.useCallback(()=>{r(!0)},[r]),i=g.useCallback(()=>{r(!1)},[r]),s=g.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:o,close:i,toggle:s}}var UB={};UB={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var HB={};HB={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var XB={};XB={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var YB={};YB={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var JB={};JB={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var KB={};KB={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var QB={};QB={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var e6={};e6={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var t6={};t6={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var r6={};r6={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var a6={};a6={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var n6={};n6={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var o6={};o6={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var i6={};i6={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var s6={};s6={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var l6={};l6={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var c6={};c6={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var u6={};u6={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var d6={};d6={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var f6={};f6={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var p6={};p6={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var m6={};m6={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var g6={};g6={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var h6={};h6={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var b6={};b6={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var y6={};y6={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var v6={};v6={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var $6={};$6={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var C6={};C6={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var x6={};x6={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var w6={};w6={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var A6={};A6={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var E6={};E6={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var T6={};T6={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var _6={};_6={"ar-AE":UB,"bg-BG":HB,"cs-CZ":XB,"da-DK":YB,"de-DE":JB,"el-GR":KB,"en-US":QB,"es-ES":e6,"et-EE":t6,"fi-FI":r6,"fr-FR":a6,"he-IL":n6,"hr-HR":o6,"hu-HU":i6,"it-IT":s6,"ja-JP":l6,"ko-KR":c6,"lt-LT":u6,"lv-LV":d6,"nb-NO":f6,"nl-NL":p6,"pl-PL":m6,"pt-BR":g6,"pt-PT":h6,"ro-RO":b6,"ru-RU":y6,"sk-SK":v6,"sl-SI":$6,"sr-SP":C6,"sv-SE":x6,"tr-TR":w6,"uk-UA":A6,"zh-CN":E6,"zh-TW":T6};function TVe(e){return e&&e.__esModule?e.default:e}const _Ve=new Ki(TVe(_6));function DVe(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function D6(e,t,r,o,i){let s=e!=null&&r!=null&&e.compare(r)>0,l=e!=null&&t!=null&&e.compare(t)<0,c=e!=null&&(o==null?void 0:o(e))||!1,u=s||l||c,d=[];if(u){let f=DVe(),p=Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||_Ve,m=new HL(f,p),b=new so(f,Kl({},i)),h=b.resolvedOptions().timeZone;l&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:b.format(t.toDate(h))})),s&&r!=null&&d.push(m.format("rangeOverflow",{maxValue:b.format(r.toDate(h))})),c&&d.push(m.format("unavailableDate"))}return{isInvalid:u,validationErrors:d,validationDetails:{badInput:c,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!u}}}const SVe={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},PVe={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Kl(e,t){e={...t.shouldForceLeadingZeros?PVe:SVe,...e};let o=t.granularity||"minute",i=Object.keys(e);var s;let l=i.indexOf((s=t.maxGranularity)!==null&&s!==void 0?s:"year");l<0&&(l=0);let c=i.indexOf(o);if(c<0&&(c=2),l>c)throw new Error("maxGranularity must be greater than granularity");let u=i.slice(l,c+1).reduce((f,p)=>(f[p]=e[p],f),{});return t.hourCycle!=null&&(u.hour12=t.hourCycle===12),u.timeZone=t.timeZone||"UTC",(o==="hour"||o==="minute"||o==="second")&&t.timeZone&&!t.hideTimeZone&&(u.timeZoneName="short"),t.showEra&&l===0&&(u.era="short"),u}function S6(e){return e&&"hour"in e?e:new K4}function P6(e,t){if(e===null)return null;if(e)return At(e,t)}function tf(e,t,r,o){if(e)return P6(e,r);let i=At(KL(o??ai()).set({hour:0,minute:0,second:0,millisecond:0}),r);return t==="year"||t==="month"||t==="day"?Oa(i):o?i:gn(i)}function I6(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,o=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,s]=g.useState([o,r]);e&&(i[0]!==o||i[1]!==r)&&s([o,r]),t||(t=e?o:i[0]);let l=e?r:i[1];return[t,l]}function IVe(e){let t=EVe(e),[r,o]=Xi(e.value,e.defaultValue||null,e.onChange),i=r||e.placeholderValue||null,[s,l]=I6(i,e.granularity),c=r!=null?r.toDate(l??"UTC"):null,u=s==="hour"||s==="minute"||s==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[p,m]=g.useState(null),[b,h]=g.useState(null);if(r&&(p=r,"hour"in r&&(b=r)),i&&!(s in i))throw new Error("Invalid granularity "+s+" for value "+i.toString());let y=(r==null?void 0:r.calendar.identifier)==="gregory"&&r.era==="BC",v=g.useMemo(()=>({granularity:s,timeZone:l,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:y}),[s,e.hourCycle,e.shouldForceLeadingZeros,l,e.hideTimeZone,y]),{minValue:$,maxValue:C,isDateUnavailable:T}=e,x=g.useMemo(()=>D6(r,$,C,T,v),[r,$,C,T,v]),w=Ih({...e,value:r,builtinValidation:x}),S=w.displayValidation.isInvalid,P=e.validationState||(S?"invalid":null),A=(j,V)=>{o("timeZone"in V?V.set(Oa(j)):gn(j,V)),m(null),h(null),w.commitValidation()};return{...w,value:r,setValue:o,dateValue:p,timeValue:b,setDateValue:j=>{let V=typeof f=="function"?f():f;u?b||V?A(j,b||S6(e.defaultValue||e.placeholderValue)):m(j):(o(j),w.commitValidation()),V&&t.setOpen(!1)},setTimeValue:j=>{p&&j?A(p,j):h(j)},granularity:s,hasTime:u,...t,setOpen(j){!j&&!r&&p&&u&&A(p,b||S6(e.defaultValue||e.placeholderValue)),t.setOpen(j)},validationState:P,isInvalid:S,formatValue(j,V){if(!c)return"";let k=Kl(V,v);return new so(j,k).format(c)},getDateFormatter(j,V){let k={...v,...V},Z=Kl({},k);return new so(j,Z)}}}const jVe=new Ki({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function kVe(e,t,r){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?jVe.getStringForLocale(e,r):"––"}const Lh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},j6={year:5,month:2,day:7,hour:2,minute:15,second:15},NVe={dayperiod:"dayPeriod"};function LVe(e){let{locale:t,createCalendar:r,hideTimeZone:o,isDisabled:i=!1,isReadOnly:s=!1,isRequired:l=!1,minValue:c,maxValue:u,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[p,m]=I6(f,e.granularity),b=m||"UTC";if(f&&!(p in f))throw new Error("Invalid granularity "+p+" for value "+f.toString());let h=g.useMemo(()=>new so(t),[t]),y=g.useMemo(()=>r(h.resolvedOptions().calendar),[r,h]);var v;let[$,C]=Xi(e.value,(v=e.defaultValue)!==null&&v!==void 0?v:null,e.onChange),T=g.useMemo(()=>{var R;return(R=P6($,y))!==null&&R!==void 0?R:null},[$,y]),[x,w]=g.useState(()=>tf(e.placeholderValue,p,y,m)),S=T||x,P=y.identifier==="gregory"&&S.era==="BC",A=g.useMemo(()=>{var R;return{granularity:p,maxGranularity:(R=e.maxGranularity)!==null&&R!==void 0?R:"year",timeZone:m,hideTimeZone:o,hourCycle:e.hourCycle,showEra:P,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,p,e.hourCycle,e.shouldForceLeadingZeros,m,o,P]),I=g.useMemo(()=>Kl({},A),[A]),O=g.useMemo(()=>new so(t,I),[t,I]),j=g.useMemo(()=>O.resolvedOptions(),[O]),V=g.useMemo(()=>O.formatToParts(new Date).filter(R=>Lh[R.type]).reduce((R,W)=>(R[W.type]=!0,R),{}),[O]),[k,Z]=g.useState(()=>e.value||e.defaultValue?{...V}:{}),U=g.useRef(null),X=g.useRef(y.identifier);g.useEffect(()=>{y.identifier!==X.current&&(X.current=y.identifier,w(R=>Object.keys(k).length>0?At(R,y):tf(e.placeholderValue,p,y,m)))},[y,p,k,m,e.placeholderValue]),$&&Object.keys(k).length<Object.keys(V).length&&(k={...V},Z(k)),$==null&&Object.keys(k).length===Object.keys(V).length&&(k={},Z(k),w(tf(e.placeholderValue,p,y,m)));let ee=T&&Object.keys(k).length>=Object.keys(V).length?T:x,te=R=>{if(e.isDisabled||e.isReadOnly)return;let W=Object.keys(k),Q=Object.keys(V);R==null?(C(null),w(tf(e.placeholderValue,p,y,m)),Z({})):W.length>=Q.length||W.length===Q.length-1&&V.dayPeriod&&!k.dayPeriod&&U.current!=="dayPeriod"?(R=At(R,(f==null?void 0:f.calendar)||new qr),C(R)):w(R),U.current=null},de=g.useMemo(()=>ee.toDate(b),[ee,b]),G=g.useMemo(()=>OVe(de,k,O,j,ee,y,t,p),[de,k,O,j,ee,y,t,p]);V.era&&k.year&&!k.era?(k.era=!0,Z({...k})):!V.era&&k.era&&(delete k.era,Z({...k}));let N=R=>{k[R]=!0,R==="year"&&V.era&&(k.era=!0),Z({...k})},B=(R,W)=>{if(k[R])te(BVe(ee,R,W,j));else{N(R);let Q=Object.keys(k),fe=Object.keys(V);(Q.length>=fe.length||Q.length===fe.length-1&&V.dayPeriod&&!k.dayPeriod)&&te(ee)}},L=g.useMemo(()=>D6($,c,u,d,A),[$,c,u,d,A]),E=Ih({...e,value:$,builtinValidation:L}),_=E.displayValidation.isInvalid,M=e.validationState||(_?"invalid":null);var z;return{...E,value:T,dateValue:de,calendar:y,setValue:te,segments:G,dateFormatter:O,validationState:M,isInvalid:_,granularity:p,maxGranularity:(z=e.maxGranularity)!==null&&z!==void 0?z:"year",isDisabled:i,isReadOnly:s,isRequired:l,increment(R){B(R,1)},decrement(R){B(R,-1)},incrementPage(R){B(R,j6[R]||1)},decrementPage(R){B(R,-(j6[R]||1))},setSegment(R,W){N(R),te(MVe(ee,R,W,j))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let R=Object.keys(k),W=Object.keys(V);R.length===W.length-1&&V.dayPeriod&&!k.dayPeriod&&(k={...V},Z(k),te(ee.copy()))},clearSegment(R){delete k[R],U.current=R,Z({...k});let W=tf(e.placeholderValue,p,y,m),Q=ee;if(R==="dayPeriod"&&"hour"in ee&&"hour"in W){let fe=ee.hour>=12,H=W.hour>=12;fe&&!H?Q=ee.set({hour:ee.hour-12}):!fe&&H&&(Q=ee.set({hour:ee.hour+12}))}else R==="hour"&&"hour"in ee&&ee.hour>=12&&k.dayPeriod?Q=ee.set({hour:W.hour+12}):R in ee&&(Q=ee.set({[R]:W[R]}));C(null),te(Q)},formatValue(R){if(!T)return"";let W=Kl(R,A);return new so(t,W).format(de)},getDateFormatter(R,W){let Q={...A,...W},fe=Kl({},Q);return new so(R,fe)}}}function OVe(e,t,r,o,i,s,l,c){let u=["hour","minute","second"],d=r.formatToParts(e),f=[];for(let p of d){let m=Lh[p.type];p.type==="era"&&s.getEras().length===1&&(m=!1);let b=Lh[p.type]&&!t[p.type],h=Lh[p.type]?kVe(p.type,p.value,l):null,y={type:NVe[p.type]||p.type,text:b?h:p.value,...Oh(i,p.type,o),isPlaceholder:b,placeholder:h,isEditable:m};p.type==="hour"?(f.push({type:"literal",text:"⁦",...Oh(i,"literal",o),isPlaceholder:!1,placeholder:"",isEditable:!1}),f.push(y),p.type===c&&f.push({type:"literal",text:"⁩",...Oh(i,"literal",o),isPlaceholder:!1,placeholder:"",isEditable:!1})):u.includes(p.type)&&p.type===c?(f.push(y),f.push({type:"literal",text:"⁩",...Oh(i,"literal",o),isPlaceholder:!1,placeholder:"",isEditable:!1})):f.push(y)}return f}function Oh(e,t,r){switch(t){case"era":{let o=e.calendar.getEras();return{value:o.indexOf(e.era),minValue:0,maxValue:o.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:jRe(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:kRe(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(r.hour12){let o=e.hour>=12;return{value:e.hour,minValue:o?12:0,maxValue:o?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function BVe(e,t,r,o){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,r,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,s=i>=12;return e.set({hour:s?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,r,{round:t!=="hour",hourCycle:o.hour12?12:24})}throw new Error("Unknown segment: "+t)}function MVe(e,t,r,o){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:r})}if("hour"in e&&typeof r=="number")switch(t){case"dayPeriod":{let i=e.hour,s=i>=12;return r>=12===s?e:e.set({hour:s?i-12:i+12})}case"hour":if(o.hour12){let s=e.hour>=12;!s&&r===12&&(r=0),s&&r<12&&(r+=12)}case"minute":case"second":return e.set({[t]:r})}throw new Error("Unknown segment: "+t)}const k6=g.createContext(null),Bh=g.createContext({}),PC=g.forwardRef(function(t,r){[t,r]=ao(t,r,Bh);let{isDisabled:o,isInvalid:i,onHoverStart:s,onHoverChange:l,onHoverEnd:c,...u}=t,{hoverProps:d,isHovered:f}=Rd({onHoverStart:s,onHoverChange:l,onHoverEnd:c,isDisabled:o}),{isFocused:p,isFocusVisible:m,focusProps:b}=Jl({within:!0});o??(o=!!t["aria-disabled"]&&t["aria-disabled"]!=="false"),i??(i=!!t["aria-invalid"]&&t["aria-invalid"]!=="false");let h=ro({...t,values:{isHovered:f,isFocusWithin:p,isFocusVisible:m,isDisabled:o,isInvalid:i},defaultClassName:"react-aria-Group"});var y,v;return g.createElement("div",{...ct(u,b,d),...h,ref:r,role:(y=t.role)!==null&&y!==void 0?y:"group",slot:(v=t.slot)!==null&&v!==void 0?v:void 0,"data-focus-within":p||void 0,"data-hovered":f||void 0,"data-focus-visible":m||void 0,"data-disabled":o||void 0,"data-invalid":i||void 0},h.children)}),Mh=g.createContext(null),FVe=g.createContext(null),Fh=g.createContext(null),IC=g.createContext(null),RVe=g.forwardRef(function(t,r){[t,r]=ao(t,r,Mh);let{locale:o}=kr(),i=AVe({...t,locale:o,createCalendar:z5}),{calendarProps:s,prevButtonProps:l,nextButtonProps:c,errorMessageProps:u,title:d}=G7e(t,i),f=ro({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-Calendar"});return g.createElement("div",{...f,...s,ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},g.createElement(Ld,{values:[[Qd,{slots:{previous:l,next:c}}],[g4,{"aria-hidden":!0,level:2,children:d}],[Fh,i],[Mh,t],[TC,{slots:{errorMessage:u}}]]},g.createElement(VO,null,g.createElement("h2",null,s["aria-label"])),f.children,g.createElement(VO,null,g.createElement("button",{"aria-label":c["aria-label"],disabled:c.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),Rh=g.createContext(null),VVe=g.forwardRef(function(t,r){let o=g.useContext(Fh),i=g.useContext(IC),s=Od(Mh),l=Od(FVe),c=o??i,u=c.visibleRange.start;t.offset&&(u=u.add(t.offset));var d;let f=(d=s==null?void 0:s.firstDayOfWeek)!==null&&d!==void 0?d:l==null?void 0:l.firstDayOfWeek,{gridProps:p,headerProps:m,weekDays:b}=z7e({startDate:u,endDate:mh(u),weekdayStyle:t.weekdayStyle,firstDayOfWeek:f},c);var h;return g.createElement(Rh.Provider,{value:{headerProps:m,weekDays:b,startDate:u,firstDayOfWeek:f}},g.createElement("table",{...Yt(t),...p,ref:r,style:t.style,className:(h=t.className)!==null&&h!==void 0?h:"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:g.createElement(g.Fragment,null,g.createElement(N6,null,y=>g.createElement(L6,null,y)),g.createElement(O6,null,t.children))))});function GVe(e,t){let{children:r,style:o,className:i}=e,{headerProps:s,weekDays:l}=g.useContext(Rh);return g.createElement("thead",{...Yt(e),...s,ref:t,style:o,className:i||"react-aria-CalendarGridHeader"},g.createElement("tr",null,l.map((c,u)=>g.cloneElement(r(c),{key:u}))))}const N6=g.forwardRef(GVe);function zVe(e,t){let{children:r,style:o,className:i}=e;return g.createElement("th",{...Yt(e),ref:t,style:o,className:i||"react-aria-CalendarHeaderCell"},r)}const L6=g.forwardRef(zVe);function ZVe(e,t){let{children:r,style:o,className:i}=e,s=g.useContext(Fh),l=g.useContext(IC),c=s??l,{startDate:u,firstDayOfWeek:d}=g.useContext(Rh),{locale:f}=kr(),p=BRe(u,f,d);return g.createElement("tbody",{...Yt(e),ref:t,style:o,className:i||"react-aria-CalendarGridBody"},[...new Array(p).keys()].map(m=>g.createElement("tr",{key:m},c.getDatesInWeek(m,u).map((b,h)=>b?g.cloneElement(r(b),{key:h}):g.createElement("td",{key:h})))))}const O6=g.forwardRef(ZVe),WVe=g.forwardRef(function({date:t,...r},o){let i=g.useContext(Fh),s=g.useContext(IC),l=i??s;var c;let{startDate:u}=(c=g.useContext(Rh))!==null&&c!==void 0?c:{startDate:l.visibleRange.start},d=g.useRef(null),{cellProps:f,buttonProps:p,...m}=W7e({date:t},l,d),{hoverProps:b,isHovered:h}=Rd({...r,isDisabled:m.isDisabled}),{focusProps:y,isFocusVisible:v}=Jl();v&&(v=m.isFocused);let $=!_Re(u,t),C=!1,T=!1;"highlightedRange"in l&&l.highlightedRange&&(C=Mt(t,l.highlightedRange.start),T=Mt(t,l.highlightedRange.end));let x=ro({...r,defaultChildren:m.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:h,isOutsideMonth:$,isFocusVisible:v,isSelectionStart:C,isSelectionEnd:T,...m}}),w={"data-focused":m.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":m.isPressed||void 0,"data-unavailable":m.isUnavailable||void 0,"data-disabled":m.isDisabled||void 0,"data-focus-visible":v||void 0,"data-outside-visible-range":m.isOutsideVisibleRange||void 0,"data-outside-month":$||void 0,"data-selected":m.isSelected||void 0,"data-selection-start":C||void 0,"data-selection-end":T||void 0,"data-invalid":m.isInvalid||void 0};return g.createElement("td",{...f,ref:o},g.createElement("div",{...ct(Yt(r),p,y,b,w,x),ref:d}))}),qVe=g.createContext(null),B6=g.createContext(null),M6=g.createContext(null),UVe=g.forwardRef(function(t,r){let o=t["aria-labelledby"];[t,r]=ao(t,r,B6);let{dialogProps:i,titleProps:s}=yVe({...t,"aria-labelledby":o},r),l=g.useContext(M6);!i["aria-label"]&&!i["aria-labelledby"]&&(t["aria-labelledby"]?i["aria-labelledby"]=t["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let c=ro({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return g.createElement("section",{...Yt(t),...i,...c,ref:r,slot:t.slot||void 0},g.createElement(Ld,{values:[[g4,{slots:{[D4]:{},title:{...s,level:2}}}],[Qd,{slots:{[D4]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},c.children))}),F6=g.createContext(null),Vh=g.createContext(null),jC=g.createContext(null),HVe=g.forwardRef(function(t,r){let o=g.useContext(Vh),i=g.useContext(jC);return o||i?g.createElement(R6,{...t,ref:r}):g.createElement(XVe,{...t,ref:r})}),XVe=g.forwardRef((e,t)=>{let[r,o]=ao({slot:e.slot},t,F6),{locale:i}=kr(),s=LVe({...r,locale:i,createCalendar:z5}),l=g.useRef(null),{fieldProps:c,inputProps:u}=uVe({...r,inputRef:l},s,o);return g.createElement(Ld,{values:[[Vh,s],[EC,{...u,ref:l}],[Bh,{...c,ref:o,isInvalid:s.isInvalid}]]},g.createElement(R6,e))}),R6=g.forwardRef((e,t)=>{let{className:r,children:o}=e,i=g.useContext(Vh),s=g.useContext(jC),l=i??s;return g.createElement(g.Fragment,null,g.createElement(PC,{...e,ref:t,slot:e.slot||void 0,className:r??"react-aria-DateInput",isInvalid:l.isInvalid},l.segments.map((c,u)=>g.cloneElement(o(c),{key:u}))),g.createElement(zB,null))}),YVe=g.forwardRef(function({segment:t,...r},o){let i=g.useContext(Vh),s=g.useContext(jC),l=i??s,c=dL(o),{segmentProps:u}=hVe(t,l,c),{focusProps:d,isFocused:f,isFocusVisible:p}=Jl(),{hoverProps:m,isHovered:b}=Rd({...r,isDisabled:l.isDisabled||t.type==="literal"}),h=ro({...r,values:{...t,isReadOnly:!t.isEditable,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:b,isFocused:f,isFocusVisible:p},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return g.createElement("span",{...ct(Yt(r),u,d,m),...h,style:u.style,ref:c,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":!t.isEditable||void 0,"data-disabled":l.isDisabled||void 0,"data-type":t.type,"data-hovered":b||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0})}),JVe=g.createContext(null),KVe=g.createContext(null),QVe=g.forwardRef(function(t,r){[t,r]=ao(t,r,JVe);let{validationBehavior:o}=Od(k6)||{};var i,s;let l=(s=(i=t.validationBehavior)!==null&&i!==void 0?i:o)!==null&&s!==void 0?s:"native",c=IVe({...t,validationBehavior:l}),u=g.useRef(null),[d,f]=vL(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:p,labelProps:m,fieldProps:b,buttonProps:h,dialogProps:y,calendarProps:v,descriptionProps:$,errorMessageProps:C,...T}=fVe({...$L(t),label:f,validationBehavior:l},c,u),[x,w]=g.useState(null),S=g.useCallback(()=>{u.current&&w(u.current.offsetWidth+"px")},[]);OFe({ref:u,onResize:S});let{focusProps:P,isFocused:A,isFocusVisible:I}=Jl({within:!0}),O=ro({...t,values:{state:c,isFocusWithin:A,isFocusVisible:I,isDisabled:t.isDisabled||!1,isInvalid:c.isInvalid,isOpen:c.isOpen},defaultClassName:"react-aria-DatePicker"}),j=Yt(t);return delete j.id,g.createElement(Ld,{values:[[KVe,c],[Bh,{...p,ref:u,isInvalid:c.isInvalid}],[F6,b],[Qd,{...h,isPressed:c.isOpen}],[ZB,{...m,ref:d,elementType:"span"}],[Mh,v],[M6,c],[qVe,{trigger:"DatePicker",triggerRef:u,placement:"bottom start",style:{"--trigger-width":x}}],[B6,y],[TC,{slots:{description:$,errorMessage:C}}],[WB,T]]},g.createElement("div",{...P,...j,...O,ref:r,slot:t.slot||void 0,"data-focus-within":A||void 0,"data-invalid":c.isInvalid||void 0,"data-focus-visible":I||void 0,"data-disabled":t.isDisabled||void 0,"data-open":c.isOpen||void 0}))}),e8e=g.forwardRef(function(t,r){[t,r]=ao(t,r,g4);let{children:o,level:i=3,className:s,...l}=t,c=`h${i}`;return g.createElement(c,{...l,ref:r,className:s??"react-aria-Heading"},o)}),t8e=g.createContext(null),r8e=g.createContext(null),a8e=g.forwardRef(function(t,r){[t,r]=ao(t,r,t8e);let{validationBehavior:o}=Od(k6)||{};var i,s;let l=(s=(i=t.validationBehavior)!==null&&i!==void 0?i:o)!==null&&s!==void 0?s:"native",{locale:c}=kr(),u=Q7e({...t,locale:c,validationBehavior:l}),d=g.useRef(null),[f,p]=vL(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:m,groupProps:b,inputProps:h,incrementButtonProps:y,decrementButtonProps:v,descriptionProps:$,errorMessageProps:C,...T}=oVe({...$L(t),label:p,validationBehavior:l},u,d),x=ro({...t,values:{state:u,isDisabled:t.isDisabled||!1,isInvalid:T.isInvalid||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-NumberField"}),w=Yt(t);return delete w.id,g.createElement(Ld,{values:[[r8e,u],[Bh,b],[EC,{...h,ref:d}],[ZB,{...m,ref:f}],[Qd,{slots:{increment:y,decrement:v}}],[TC,{slots:{description:$,errorMessage:C}}],[WB,T]]},g.createElement("div",{...w,...x,ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-required":t.isRequired||void 0,"data-invalid":T.isInvalid||void 0}),t.name&&g.createElement("input",{type:"hidden",name:t.name,value:isNaN(u.numberValue)?"":u.numberValue}))}),n8e=Sl("",{variants:{variant:{default:["flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","data-[focus-within]:outline-none data-[focus-within]:ring-2 data-[focus-within]:ring-ring data-[focus-within]:ring-offset-2","data-[disabled]:opacity-50"],ghost:""}},defaultVariants:{variant:"default"}});function V6({className:e,variant:t,...r}){return D.jsx(PC,{className:nh(e,o=>ze(n8e({variant:t}),o)),...r})}const o8e=Sl(["inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ","data-[focus-visible]:outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-offset-2","focus-visible:outline-none"],{variants:{variant:{default:"bg-primary text-primary-foreground data-[hovered]:bg-primary/90",destructive:"bg-destructive text-destructive-foreground data-[hovered]:bg-destructive/90",outline:"border border-input bg-background data-[hovered]:bg-accent data-[hovered]:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground data-[hovered]:bg-secondary/80",ghost:"data-[hovered]:bg-accent data-[hovered]:text-accent-foreground",link:"text-primary underline-offset-4 data-[hovered]:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),i8e=({className:e,variant:t,size:r,...o})=>D.jsx(Nh,{className:nh(e,i=>ze(o8e({variant:t,size:r,className:i}))),...o}),G6=a8e;function z6({className:e,...t}){return D.jsx(zB,{className:nh(e,r=>ze("placeholder:text-muted-foreground w-fit min-w-0 flex-1 border-r border-transparent bg-transparent pr-2 outline outline-0 [&::-webkit-search-cancel-button]:hidden",r)),...t})}function Z6({className:e,...t}){return D.jsxs("div",{className:ze("absolute right-0 top-0 flex h-full flex-col border-l",e),...t,children:[D.jsx(W6,{slot:"increment",children:D.jsx(r9e,{"aria-hidden":!0,className:"size-4"})}),D.jsx("div",{className:"border-b"}),D.jsx(W6,{slot:"decrement",children:D.jsx(R$,{"aria-hidden":!0,className:"size-4"})})]})}function W6({className:e,...t}){return D.jsx(i8e,{className:nh(e,r=>ze("text-muted-foreground w-auto grow rounded-none px-0.5",r)),variant:"ghost",size:"icon",...t})}const s8e=e=>{const{data:t,schema:r,id:o,enabled:i,uischema:s,path:l,handleChange:c}=e,u=r.multipleOf?-Math.log10(r.multipleOf):void 0;return D.jsx(G6,{id:o,autoFocus:s.options&&s.options.focus,value:t,onChange:d=>c(l,d),minValue:r.exclusiveMinimum??r.minimum??void 0,maxValue:r.exclusiveMaximum??r.maximum??void 0,isDisabled:!i,formatOptions:{style:"currency",currency:r.currency,signDisplay:"auto",maximumFractionDigits:u},children:D.jsxs(V6,{className:"relative",children:[D.jsx(z6,{}),D.jsx(Z6,{})]})})},l8e=Ye(3,it(yp,Er(e=>!Ae(e)&&Object.prototype.hasOwnProperty.call(e,"currency")))),c8e=Qt(Tr(s8e));function u8e(e,t=globalThis==null?void 0:globalThis.document){const r=Jn(e);F.useEffect(()=>{const o=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var d8e="DismissableLayer",kC="dismissableLayer.update",f8e="dismissableLayer.pointerDownOutside",p8e="dismissableLayer.focusOutside",q6,U6=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H6=F.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,d=F.useContext(U6),[f,p]=F.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=F.useState({}),h=$r(t,P=>p(P)),y=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),$=y.indexOf(v),C=f?y.indexOf(f):-1,T=d.layersWithOutsidePointerEventsDisabled.size>0,x=C>=$,w=h8e(P=>{const A=P.target,I=[...d.branches].some(O=>O.contains(A));!x||I||(i==null||i(P),l==null||l(P),P.defaultPrevented||c==null||c())},m),S=b8e(P=>{const A=P.target;[...d.branches].some(O=>O.contains(A))||(s==null||s(P),l==null||l(P),P.defaultPrevented||c==null||c())},m);return u8e(P=>{C===d.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},m),F.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(q6=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),X6(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=q6)}},[f,m,r,d]),F.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),X6())},[f,d]),F.useEffect(()=>{const P=()=>b({});return document.addEventListener(kC,P),()=>document.removeEventListener(kC,P)},[]),D.jsx(Ot.div,{...u,ref:h,style:{pointerEvents:T?x?"auto":"none":void 0,...e.style},onFocusCapture:Gt(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Gt(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Gt(e.onPointerDownCapture,w.onPointerDownCapture)})});H6.displayName=d8e;var m8e="DismissableLayerBranch",g8e=F.forwardRef((e,t)=>{const r=F.useContext(U6),o=F.useRef(null),i=$r(t,o);return F.useEffect(()=>{const s=o.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),D.jsx(Ot.div,{...e,ref:i})});g8e.displayName=m8e;function h8e(e,t=globalThis==null?void 0:globalThis.document){const r=Jn(e),o=F.useRef(!1),i=F.useRef(()=>{});return F.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let u=function(){Y6(f8e,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);o.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function b8e(e,t=globalThis==null?void 0:globalThis.document){const r=Jn(e),o=F.useRef(!1);return F.useEffect(()=>{const i=s=>{s.target&&!o.current&&Y6(p8e,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function X6(){const e=new CustomEvent(kC);document.dispatchEvent(e)}function Y6(e,t,r,{discrete:o}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?hOe(i,s):i.dispatchEvent(s)}var NC=0;function y8e(){F.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J6()),document.body.insertAdjacentElement("beforeend",e[1]??J6()),NC++,()=>{NC===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),NC--}},[])}function J6(){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 LC="focusScope.autoFocusOnMount",OC="focusScope.autoFocusOnUnmount",K6={bubbles:!1,cancelable:!0},v8e="FocusScope",Q6=F.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,u]=F.useState(null),d=Jn(i),f=Jn(s),p=F.useRef(null),m=$r(t,y=>u(y)),b=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(o){let y=function(T){if(b.paused||!c)return;const x=T.target;c.contains(x)?p.current=x:oi(p.current,{select:!0})},v=function(T){if(b.paused||!c)return;const x=T.relatedTarget;x!==null&&(c.contains(x)||oi(p.current,{select:!0}))},$=function(T){if(document.activeElement===document.body)for(const w of T)w.removedNodes.length>0&&oi(c)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const C=new MutationObserver($);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),C.disconnect()}}},[o,c,b.paused]),F.useEffect(()=>{if(c){rM.add(b);const y=document.activeElement;if(!c.contains(y)){const $=new CustomEvent(LC,K6);c.addEventListener(LC,d),c.dispatchEvent($),$.defaultPrevented||($8e(E8e(eM(c)),{select:!0}),document.activeElement===y&&oi(c))}return()=>{c.removeEventListener(LC,d),setTimeout(()=>{const $=new CustomEvent(OC,K6);c.addEventListener(OC,f),c.dispatchEvent($),$.defaultPrevented||oi(y??document.body,{select:!0}),c.removeEventListener(OC,f),rM.remove(b)},0)}}},[c,d,f,b]);const h=F.useCallback(y=>{if(!r&&!o||b.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,$=document.activeElement;if(v&&$){const C=y.currentTarget,[T,x]=C8e(C);T&&x?!y.shiftKey&&$===x?(y.preventDefault(),r&&oi(T,{select:!0})):y.shiftKey&&$===T&&(y.preventDefault(),r&&oi(x,{select:!0})):$===C&&y.preventDefault()}},[r,o,b.paused]);return D.jsx(Ot.div,{tabIndex:-1,...l,ref:m,onKeyDown:h})});Q6.displayName=v8e;function $8e(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(oi(o,{select:t}),document.activeElement!==r)return}function C8e(e){const t=eM(e),r=tM(t,e),o=tM(t.reverse(),e);return[r,o]}function eM(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function tM(e,t){for(const r of e)if(!x8e(r,{upTo:t}))return r}function x8e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function w8e(e){return e instanceof HTMLInputElement&&"select"in e}function oi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&w8e(e)&&t&&e.select()}}var rM=A8e();function A8e(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=aM(e,t),e.unshift(t)},remove(t){var r;e=aM(e,t),(r=e[0])==null||r.resume()}}}function aM(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function E8e(e){return e.filter(t=>t.tagName!=="A")}var T8e="Arrow",nM=F.forwardRef((e,t)=>{const{children:r,width:o=10,height:i=5,...s}=e;return D.jsx(Ot.svg,{...s,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:D.jsx("polygon",{points:"0,0 30,0 15,10"})})});nM.displayName=T8e;var _8e=nM,BC="Popper",[oM,iM]=Jo(BC),[D8e,sM]=oM(BC),lM=e=>{const{__scopePopper:t,children:r}=e,[o,i]=F.useState(null);return D.jsx(D8e,{scope:t,anchor:o,onAnchorChange:i,children:r})};lM.displayName=BC;var cM="PopperAnchor",uM=F.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...i}=e,s=sM(cM,r),l=F.useRef(null),c=$r(t,l);return F.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:D.jsx(Ot.div,{...i,ref:c})});uM.displayName=cM;var MC="PopperContent",[S8e,P8e]=oM(MC),dM=F.forwardRef((e,t)=>{var z,R,W,Q,fe,H;const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:b="optimized",onPlaced:h,...y}=e,v=sM(MC,r),[$,C]=F.useState(null),T=$r(t,je=>C(je)),[x,w]=F.useState(null),S=fk(x),P=(S==null?void 0:S.width)??0,A=(S==null?void 0:S.height)??0,I=o+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(d)?d:[d],V=j.length>0,k={padding:O,boundary:j.filter(j8e),altBoundary:V},{refs:Z,floatingStyles:U,placement:X,isPositioned:ee,middlewareData:te}=$n.useFloating({strategy:"fixed",placement:I,whileElementsMounted:(...je)=>$n.autoUpdate(...je,{animationFrame:b==="always"}),elements:{reference:v.anchor},middleware:[$n.offset({mainAxis:i+A,alignmentAxis:l}),u&&$n.shift({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?$n.limitShift():void 0,...k}),u&&$n.flip({...k}),$n.size({...k,apply:({elements:je,rects:ft,availableWidth:Et,availableHeight:Cr})=>{const{width:Nr,height:sr}=ft.reference,Ft=je.floating.style;Ft.setProperty("--radix-popper-available-width",`${Et}px`),Ft.setProperty("--radix-popper-available-height",`${Cr}px`),Ft.setProperty("--radix-popper-anchor-width",`${Nr}px`),Ft.setProperty("--radix-popper-anchor-height",`${sr}px`)}}),x&&$n.arrow({element:x,padding:c}),k8e({arrowWidth:P,arrowHeight:A}),m&&$n.hide({strategy:"referenceHidden",...k})]}),[de,G]=mM(X),N=Jn(h);Ko(()=>{ee&&(N==null||N())},[ee,N]);const B=(z=te.arrow)==null?void 0:z.x,L=(R=te.arrow)==null?void 0:R.y,E=((W=te.arrow)==null?void 0:W.centerOffset)!==0,[_,M]=F.useState();return Ko(()=>{$&&M(window.getComputedStyle($).zIndex)},[$]),D.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:ee?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_,"--radix-popper-transform-origin":[(Q=te.transformOrigin)==null?void 0:Q.x,(fe=te.transformOrigin)==null?void 0:fe.y].join(" "),...((H=te.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:D.jsx(S8e,{scope:r,placedSide:de,onArrowChange:w,arrowX:B,arrowY:L,shouldHideArrow:E,children:D.jsx(Ot.div,{"data-side":de,"data-align":G,...y,ref:T,style:{...y.style,animation:ee?void 0:"none"}})})})});dM.displayName=MC;var fM="PopperArrow",I8e={top:"bottom",right:"left",bottom:"top",left:"right"},pM=F.forwardRef(function(t,r){const{__scopePopper:o,...i}=t,s=P8e(fM,o),l=I8e[s.placedSide];return D.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:D.jsx(_8e,{...i,ref:r,style:{...i.style,display:"block"}})})});pM.displayName=fM;function j8e(e){return e!==null}var k8e=e=>({name:"transformOrigin",options:e,fn(t){var v,$,C;const{placement:r,rects:o,middlewareData:i}=t,l=((v=i.arrow)==null?void 0:v.centerOffset)!==0,c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,f]=mM(r),p={start:"0%",center:"50%",end:"100%"}[f],m=((($=i.arrow)==null?void 0:$.x)??0)+c/2,b=(((C=i.arrow)==null?void 0:C.y)??0)+u/2;let h="",y="";return d==="bottom"?(h=l?p:`${m}px`,y=`${-u}px`):d==="top"?(h=l?p:`${m}px`,y=`${o.floating.height+u}px`):d==="right"?(h=`${-u}px`,y=l?p:`${b}px`):d==="left"&&(h=`${o.floating.width+u}px`,y=l?p:`${b}px`),{data:{x:h,y}}}});function mM(e){const[t,r="center"]=e.split("-");return[t,r]}var N8e=lM,gM=uM,L8e=dM,O8e=pM,B8e="Portal",hM=F.forwardRef((e,t)=>{var c;const{container:r,...o}=e,[i,s]=F.useState(!1);Ko(()=>s(!0),[]);const l=r||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?bf.createPortal(D.jsx(Ot.div,{...o,ref:t}),l):null});hM.displayName=B8e;var M8e=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ql=new WeakMap,Gh=new WeakMap,zh={},FC=0,bM=function(e){return e&&(e.host||bM(e.parentNode))},F8e=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=bM(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},R8e=function(e,t,r,o){var i=F8e(t,Array.isArray(e)?e:[e]);zh[r]||(zh[r]=new WeakMap);var s=zh[r],l=[],c=new Set,u=new Set(i),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};i.forEach(d);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(m){if(c.has(m))f(m);else try{var b=m.getAttribute(o),h=b!==null&&b!=="false",y=(Ql.get(m)||0)+1,v=(s.get(m)||0)+1;Ql.set(m,y),s.set(m,v),l.push(m),y===1&&h&&Gh.set(m,!0),v===1&&m.setAttribute(r,"true"),h||m.setAttribute(o,"true")}catch($){console.error("aria-hidden: cannot operate on ",m,$)}})};return f(t),c.clear(),FC++,function(){l.forEach(function(p){var m=Ql.get(p)-1,b=s.get(p)-1;Ql.set(p,m),s.set(p,b),m||(Gh.has(p)||p.removeAttribute(o),Gh.delete(p)),b||p.removeAttribute(r)}),FC--,FC||(Ql=new WeakMap,Ql=new WeakMap,Gh=new WeakMap,zh={})}},V8e=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=M8e(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),R8e(o,i,r,"aria-hidden")):function(){return null}},Zh="right-scroll-bar-position",Wh="width-before-scroll-bar",G8e="with-scroll-bars-hidden",z8e="--removed-body-scroll-bar-size";function RC(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z8e(e,t){var r=g.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var i=r.value;i!==o&&(r.value=o,r.callback(o,i))}}}})[0];return r.callback=t,r.facade}var W8e=typeof window<"u"?F.useLayoutEffect:F.useEffect,yM=new WeakMap;function q8e(e,t){var r=Z8e(null,function(o){return e.forEach(function(i){return RC(i,o)})});return W8e(function(){var o=yM.get(r);if(o){var i=new Set(o),s=new Set(e),l=r.current;i.forEach(function(c){s.has(c)||RC(c,null)}),s.forEach(function(c){i.has(c)||RC(c,l)})}yM.set(r,e)},[e]),r}function U8e(e){return e}function H8e(e,t){t===void 0&&(t=U8e);var r=[],o=!1,i={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,o);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(o=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){o=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var u=function(){var f=l;l=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),r={push:function(f){l.push(f),d()},filter:function(f){return l=l.filter(f),r}}}};return i}function X8e(e){e===void 0&&(e={});var t=H8e(null);return t.options=mn({async:!0,ssr:!1},e),t}var vM=function(e){var t=e.sideCar,r=WL(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return F.createElement(o,mn({},r))};vM.isSideCarExport=!0;function Y8e(e,t){return e.useMedium(t),vM}var $M=X8e(),VC=function(){},qh=F.forwardRef(function(e,t){var r=F.useRef(null),o=F.useState({onScrollCapture:VC,onWheelCapture:VC,onTouchMoveCapture:VC}),i=o[0],s=o[1],l=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,b=e.noIsolation,h=e.inert,y=e.allowPinchZoom,v=e.as,$=v===void 0?"div":v,C=e.gapMode,T=WL(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=m,w=q8e([r,t]),S=mn(mn({},T),i);return F.createElement(F.Fragment,null,f&&F.createElement(x,{sideCar:$M,removeScrollBar:d,shards:p,noIsolation:b,inert:h,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:C}),l?F.cloneElement(F.Children.only(c),mn(mn({},S),{ref:w})):F.createElement($,mn({},S,{className:u,ref:w}),c))});qh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qh.classNames={fullWidth:Wh,zeroRight:Zh};var J8e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function K8e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=J8e();return t&&e.setAttribute("nonce",t),e}function Q8e(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eGe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tGe=function(){var e=0,t=null;return{add:function(r){e==0&&(t=K8e())&&(Q8e(t,r),eGe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rGe=function(){var e=tGe();return function(t,r){F.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},CM=function(){var e=rGe(),t=function(r){var o=r.styles,i=r.dynamic;return e(o,i),null};return t},aGe={left:0,top:0,right:0,gap:0},GC=function(e){return parseInt(e||"",10)||0},nGe=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[GC(r),GC(o),GC(i)]},oGe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aGe;var t=nGe(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},iGe=CM(),ec="data-scroll-locked",sGe=function(e,t,r,o){var i=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
97
97
  .`.concat(G8e,` {
98
98
  overflow: hidden `).concat(o,`;
99
99
  padding-right: `).concat(c,"px ").concat(o,`;
@@ -133,5 +133,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
133
133
  `)},xM=function(){var e=parseInt(document.body.getAttribute(ec)||"0",10);return isFinite(e)?e:0},lGe=function(){F.useEffect(function(){return document.body.setAttribute(ec,(xM()+1).toString()),function(){var e=xM()-1;e<=0?document.body.removeAttribute(ec):document.body.setAttribute(ec,e.toString())}},[])},cGe=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,i=o===void 0?"margin":o;lGe();var s=F.useMemo(function(){return oGe(i)},[i]);return F.createElement(iGe,{styles:sGe(s,!t,i,r?"":"!important")})},zC=!1;if(typeof window<"u")try{var Uh=Object.defineProperty({},"passive",{get:function(){return zC=!0,!0}});window.addEventListener("test",Uh,Uh),window.removeEventListener("test",Uh,Uh)}catch{zC=!1}var tc=zC?{passive:!1}:!1,uGe=function(e){return e.tagName==="TEXTAREA"},wM=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!uGe(e)&&r[t]==="visible")},dGe=function(e){return wM(e,"overflowY")},fGe=function(e){return wM(e,"overflowX")},AM=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=EM(e,o);if(i){var s=TM(e,o),l=s[1],c=s[2];if(l>c)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},pGe=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},mGe=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},EM=function(e,t){return e==="v"?dGe(t):fGe(t)},TM=function(e,t){return e==="v"?pGe(t):mGe(t)},gGe=function(e,t){return e==="h"&&t==="rtl"?-1:1},hGe=function(e,t,r,o,i){var s=gGe(e,window.getComputedStyle(t).direction),l=s*o,c=r.target,u=t.contains(c),d=!1,f=l>0,p=0,m=0;do{var b=TM(e,c),h=b[0],y=b[1],v=b[2],$=y-v-s*h;(h||$)&&EM(e,c)&&(p+=$,m+=h),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(d=!0),d},Hh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_M=function(e){return[e.deltaX,e.deltaY]},DM=function(e){return e&&"current"in e?e.current:e},bGe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yGe=function(e){return`
134
134
  .block-interactivity-`.concat(e,` {pointer-events: none;}
135
135
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
136
- `)},vGe=0,rc=[];function $Ge(e){var t=F.useRef([]),r=F.useRef([0,0]),o=F.useRef(),i=F.useState(vGe++)[0],s=F.useState(CM)[0],l=F.useRef(e);F.useEffect(function(){l.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=vRe([e.lockRef.current],(e.shards||[]).map(DM),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=F.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var $=Hh(y),C=r.current,T="deltaX"in y?y.deltaX:C[0]-$[0],x="deltaY"in y?y.deltaY:C[1]-$[1],w,S=y.target,P=Math.abs(T)>Math.abs(x)?"h":"v";if("touches"in y&&P==="h"&&S.type==="range")return!1;var A=AM(P,S);if(!A)return!0;if(A?w=P:(w=P==="v"?"h":"v",A=AM(P,S)),!A)return!1;if(!o.current&&"changedTouches"in y&&(T||x)&&(o.current=w),!w)return!0;var I=o.current||w;return hGe(I,v,y,I==="h"?T:x)},[]),u=F.useCallback(function(y){var v=y;if(!(!rc.length||rc[rc.length-1]!==s)){var $="deltaY"in v?_M(v):Hh(v),C=t.current.filter(function(w){return w.name===v.type&&(w.target===v.target||v.target===w.shadowParent)&&bGe(w.delta,$)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var T=(l.current.shards||[]).map(DM).filter(Boolean).filter(function(w){return w.contains(v.target)}),x=T.length>0?c(v,T[0]):!l.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),d=F.useCallback(function(y,v,$,C){var T={name:y,delta:v,target:$,should:C,shadowParent:CGe($)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(x){return x!==T})},1)},[]),f=F.useCallback(function(y){r.current=Hh(y),o.current=void 0},[]),p=F.useCallback(function(y){d(y.type,_M(y),y.target,c(y,e.lockRef.current))},[]),m=F.useCallback(function(y){d(y.type,Hh(y),y.target,c(y,e.lockRef.current))},[]);F.useEffect(function(){return rc.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,tc),document.addEventListener("touchmove",u,tc),document.addEventListener("touchstart",f,tc),function(){rc=rc.filter(function(y){return y!==s}),document.removeEventListener("wheel",u,tc),document.removeEventListener("touchmove",u,tc),document.removeEventListener("touchstart",f,tc)}},[]);var b=e.removeScrollBar,h=e.inert;return F.createElement(F.Fragment,null,h?F.createElement(s,{styles:yGe(i)}):null,b?F.createElement(cGe,{gapMode:e.gapMode}):null)}function CGe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xGe=Y8e($M,$Ge);var SM=F.forwardRef(function(e,t){return F.createElement(qh,mn({},e,{ref:t,sideCar:xGe}))});SM.classNames=qh.classNames;var ZC="Popover",[PM,xqe]=Jo(ZC,[iM]),rf=iM(),[wGe,ii]=PM(ZC),IM=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=rf(t),u=F.useRef(null),[d,f]=F.useState(!1),[p=!1,m]=jl({prop:o,defaultProp:i,onChange:s});return D.jsx(N8e,{...c,children:D.jsx(wGe,{scope:t,contentId:Cg(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:F.useCallback(()=>m(b=>!b),[m]),hasCustomAnchor:d,onCustomAnchorAdd:F.useCallback(()=>f(!0),[]),onCustomAnchorRemove:F.useCallback(()=>f(!1),[]),modal:l,children:r})})};IM.displayName=ZC;var jM="PopoverAnchor",AGe=F.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=ii(jM,r),s=rf(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return F.useEffect(()=>(l(),()=>c()),[l,c]),D.jsx(gM,{...s,...o,ref:t})});AGe.displayName=jM;var kM="PopoverTrigger",NM=F.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=ii(kM,r),s=rf(r),l=$r(t,i.triggerRef),c=D.jsx(Ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":FM(i.open),...o,ref:l,onClick:Gt(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:D.jsx(gM,{asChild:!0,...s,children:c})});NM.displayName=kM;var WC="PopoverPortal",[EGe,TGe]=PM(WC,{forceMount:void 0}),LM=e=>{const{__scopePopover:t,forceMount:r,children:o,container:i}=e,s=ii(WC,t);return D.jsx(EGe,{scope:t,forceMount:r,children:D.jsx(Ed,{present:r||s.open,children:D.jsx(hM,{asChild:!0,container:i,children:o})})})};LM.displayName=WC;var ac="PopoverContent",OM=F.forwardRef((e,t)=>{const r=TGe(ac,e.__scopePopover),{forceMount:o=r.forceMount,...i}=e,s=ii(ac,e.__scopePopover);return D.jsx(Ed,{present:o||s.open,children:s.modal?D.jsx(_Ge,{...i,ref:t}):D.jsx(DGe,{...i,ref:t})})});OM.displayName=ac;var _Ge=F.forwardRef((e,t)=>{const r=ii(ac,e.__scopePopover),o=F.useRef(null),i=$r(t,o),s=F.useRef(!1);return F.useEffect(()=>{const l=o.current;if(l)return V8e(l)},[]),D.jsx(SM,{as:Wi,allowPinchZoom:!0,children:D.jsx(BM,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Gt(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),s.current||(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Gt(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Gt(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),DGe=F.forwardRef((e,t)=>{const r=ii(ac,e.__scopePopover),o=F.useRef(!1),i=F.useRef(!1);return D.jsx(BM,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(o.current||(c=r.triggerRef.current)==null||c.focus(),s.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:s=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((d=r.triggerRef.current)==null?void 0:d.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),BM=F.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=e,m=ii(ac,r),b=rf(r);return y8e(),D.jsx(Q6,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:D.jsx(H6,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:D.jsx(L8e,{"data-state":FM(m.open),role:"dialog",id:m.contentId,...b,...p,ref:t,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)"}})})})}),MM="PopoverClose",SGe=F.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=ii(MM,r);return D.jsx(Ot.button,{type:"button",...o,ref:t,onClick:Gt(e.onClick,()=>i.onOpenChange(!1))})});SGe.displayName=MM;var PGe="PopoverArrow",IGe=F.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=rf(r);return D.jsx(O8e,{...i,...o,ref:t})});IGe.displayName=PGe;function FM(e){return e?"open":"closed"}var jGe=IM,kGe=NM,NGe=LM,RM=OM;const LGe=jGe,OGe=kGe,VM=F.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},i)=>D.jsx(NGe,{children:D.jsx(RM,{ref:i,align:t,sideOffset:r,className:ze("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",e),...o})}));VM.displayName=RM.displayName;const BGe=Sl("",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-semibold tracking-tight",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",caption:"text-sm font-medium leading-none",nav:"text-xs leading-4 text-zinc-400",lead:"text-xl text-muted-foreground",muted:"text-sm text-muted-foreground",body1:"text-base",body2:"text-sm",blockquote:"border-l-2 pl-6 italic",inlineCode:"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold"}},defaultVariants:{variant:"body1"}}),GM=F.forwardRef(({className:e,variant:t,asChild:r=!1,...o},i)=>{const s=r?Wi:"span";return D.jsx(s,{className:ze("max-w-full break-words",BGe({variant:t,className:e})),ref:i,...o})});GM.displayName="Typography";function zM({displayTimeZoneText:e,className:t,...r}){return D.jsx(LGe,{children:D.jsxs(QVe,{className:ze("group flex flex-col gap-1",t),...r,isDateUnavailable:void 0,children:[D.jsxs(PC,{className:"flex flex-1 rounded-md border p-2",children:[D.jsx(OGe,{asChild:!0,children:D.jsx(Nh,{className:vg({size:"xSmall",variant:"ghost"}),children:D.jsx(QOe,{className:ze("size-4",r.isDisabled&&"opacity-50")})})}),D.jsx(HVe,{className:"flex w-full flex-row flex-wrap items-center",children:o=>o.type==="timeZoneName"?D.jsx(GM,{className:"mx-2 flex flex-1 justify-end text-xs opacity-50",children:o.text}):D.jsx(YVe,{segment:o,className:ze("rounded-sm tabular-nums caret-transparent outline-none placeholder-shown:italic",!o.isEditable||r.isDisabled?"opacity-50":"focus:bg-primary focus:text-white")})})]}),D.jsx(VM,{className:"w-fit border-0 p-0",children:D.jsx(UVe,{children:D.jsxs(RVe,{className:"rounded-sm border p-3",children:[D.jsxs("header",{className:"flex flex-row justify-between pb-4",children:[D.jsx(Nh,{slot:"previous",className:vg({size:"xSmall",variant:"ghost"}),children:D.jsx(e9e,{})}),D.jsx(e8e,{className:"font-bold"}),D.jsx(Nh,{slot:"next",className:vg({size:"xSmall",variant:"ghost"}),children:D.jsx(t9e,{})})]}),D.jsxs(VVe,{className:"border-separate border-spacing-1",children:[D.jsx(N6,{children:o=>D.jsx(L6,{className:"text-xs font-semibold",children:o})}),D.jsx(O6,{children:o=>D.jsx(WVe,{date:o,className:ze("flex size-9 cursor-default items-center justify-center rounded-sm outline-none ring-primary/70 ring-offset-2 outside-month:text-secondary hover:bg-zinc-100 focus-visible:ring pressed:bg-zinc-500 selected:bg-primary selected:text-white",r.isDateUnavailable&&r.isDateUnavailable(o)&&"opacity-50")})})]})]})})})]})})}const MGe=(e,t)=>{const r=gn(e);return gh(r,t)};function FGe(e,t="America/New_York"){try{if(e.includes("T"))return b5(e,t);{const r=XRe(e),o=Oa(r);return gh(o,t)}}catch{return null}}const RGe=e=>{const t=ai(),{data:r,id:o,enabled:i,uischema:s,schema:l,path:c,handleChange:u}=e,d=Tt(l,"timezone",t),f=FGe(r,d);return D.jsx(zM,{value:f??null,hourCycle:24,granularity:"day",onChange:p=>{p?u(c,MGe(p.set({hour:0,minute:0,second:0,millisecond:0}),d).toAbsoluteString()):u(c,null)},"aria-label":o,isDisabled:!i,name:o,autoFocus:s.options&&s.options.focus,displayTimeZoneText:d})},VGe=Ye(3,Hv),GGe=Qt(Tr(RGe)),zGe=(e,t)=>{const r=gn(e);return gh(r,t)},ZGe=e=>{const t=ai(),{data:r,id:o,enabled:i,uischema:s,schema:l,path:c,handleChange:u}=e,d=Tt(l,"timezone",t);let f=null;try{f=b5(r,d)}catch{f=null}return D.jsx(zM,{value:f??null,hourCycle:24,granularity:"second",onChange:p=>{p?u(c,zGe(p,d).toAbsoluteString()):u(c,null)},"aria-label":o,isDisabled:!i,name:o,autoFocus:s.options&&s.options.focus,displayTimeZoneText:d})},WGe=Ye(3,Xv),qGe=Qt(Tr(ZGe)),UGe=e=>{const{data:t,className:r,id:o,enabled:i,schema:s,uischema:l,path:c,handleChange:u,options:d,t:f}=e,p=g.useMemo(()=>f("enum.none",p0["enum.none"],{schema:s,uischema:l,path:c}),[f,s,l,c]),m=g.useRef(null);return D.jsx(jd,{isClearable:!0,placeholder:p,ref:m,id:o,instanceId:o,options:d,name:o,value:d==null?void 0:d.find(b=>b.value===t),isDisabled:!i,isMulti:!1,className:ze(r),menuPosition:"fixed",onChange:b=>{u(c,b==null?void 0:b.value)},closeMenuOnSelect:!0})},HGe=Ye(3,bp),XGe=i0(Pn(h0(UGe))),YGe=()=>{const[e,t]=g.useState(!1),r=g.useCallback(()=>t(!0),[]),o=g.useCallback(()=>t(!1),[]);return[e,r,o]};var JGe=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function KGe(e){var t=e.defaultOptions,r=t===void 0?!1:t,o=e.cacheOptions,i=o===void 0?!1:o,s=e.loadOptions;e.options;var l=e.isLoading,c=l===void 0?!1:l,u=e.onInputChange,d=e.filterOption,f=d===void 0?null:d,p=un(e,JGe),m=p.inputValue,b=g.useRef(void 0),h=g.useRef(!1),y=g.useState(Array.isArray(r)?r:void 0),v=Zt(y,2),$=v[0],C=v[1],T=g.useState(typeof m<"u"?m:""),x=Zt(T,2),w=x[0],S=x[1],P=g.useState(r===!0),A=Zt(P,2),I=A[0],O=A[1],j=g.useState(void 0),V=Zt(j,2),k=V[0],Z=V[1],U=g.useState([]),X=Zt(U,2),ee=X[0],te=X[1],de=g.useState(!1),G=Zt(de,2),N=G[0],B=G[1],L=g.useState({}),E=Zt(L,2),_=E[0],M=E[1],z=g.useState(void 0),R=Zt(z,2),W=R[0],Q=R[1],fe=g.useState(void 0),H=Zt(fe,2),je=H[0],ft=H[1];i!==je&&(M({}),ft(i)),r!==W&&(C(Array.isArray(r)?r:void 0),Q(r)),g.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var Et=g.useCallback(function(sr,Ft){if(!s)return Ft();var at=s(sr,Ft);at&&typeof at.then=="function"&&at.then(Ft,function(){return Ft()})},[s]);g.useEffect(function(){r===!0&&Et(w,function(sr){h.current&&(C(sr||[]),O(!!b.current))})},[]);var Cr=g.useCallback(function(sr,Ft){var at=MBe(sr,Ft,u);if(!at){b.current=void 0,S(""),Z(""),te([]),O(!1),B(!1);return}if(i&&_[at])S(at),Z(at),te(_[at]),O(!1),B(!1);else{var Ze=b.current={};S(at),O(!0),B(!k),Et(at,function(lr){h&&Ze===b.current&&(b.current=void 0,O(!1),Z(at),te(lr||[]),B(!1),M(lr?be(be({},_),{},kl({},at,lr)):_))})}},[i,Et,k,_,u]),Nr=N?[]:w&&k?ee:$||[];return be(be({},p),{},{options:Nr,isLoading:I||c,onInputChange:Cr,filterOption:f})}var QGe=g.forwardRef(function(e,t){var r=KGe(e),o=kk(r);return F.createElement(m4,ve({ref:t},o))}),eze=QGe;const tze=g.forwardRef((e,t)=>D.jsx(eze,{ref:t,unstyled:!0,id:e.id,inputId:e.id,components:{DropdownIndicator:JN,ClearIndicator:KN,MultiValueRemove:QN,MultiValueContainer:eL,ValueContainer:rL,MenuList:aL,Option:nL,MultiValueLabel:tL},classNames:{control:({isFocused:r,isDisabled:o})=>ze(["border-input ring-offset-background shadow-xs max-h-36 w-full overflow-y-auto rounded-md border bg-transparent px-3 text-sm",r?"ring-ring ring-1":"",o?"cursor-not-allowed opacity-50":""]),menu:()=>"text-sm mt-2 p-1 relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",option:({isFocused:r,isSelected:o})=>ze("relative flex w-full cursor-default select-none items-center break-words rounded-sm px-4 py-1.5 pr-2 outline-none",r?"bg-accent text-accent-foreground":"",o?"bg-primary text-white":""),multiValueLabel:()=>"dark:text-white",valueContainer:()=>"flex flex-row flex-wrap gap-2 py-2.5"},...e}));tze.displayName="AsyncAutocomplete";const rze=({config:e,id:t,schema:r,visible:o,errors:i,description:s,label:l,required:c,path:u,options:d,data:f,addItem:p,removeItem:m,handleChange:b,enabled:h,...y})=>{const[v,$,C]=YGe(),T=i.length===0,x=vi({},e,y.uischema.options),w=!a0(o,s,v,x.showUnfocusedDescription),S=g.useRef(null);return o?o&&D.jsxs("div",{className:"control root_properties_singleSelect flex flex-col gap-2",children:[D.jsxs("label",{htmlFor:t,className:"break-words text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:[l,c?"*":""]}),D.jsx(jd,{isClearable:!0,ref:S,id:t,instanceId:t,onFocus:$,onBlur:C,options:d,name:"basePayment",value:d==null?void 0:d.filter(P=>f==null?void 0:f.includes(P.value)),isDisabled:!h,isMulti:!0,onChange:P=>{b(u,P.map(A=>A.value))},closeMenuOnSelect:!0}),D.jsx("div",{className:"validation validation_error text-destructive text-sm font-medium",children:T?w?s:null:i})]}):null},aze=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),nze=e=>e.type==="string"&&e.enum!==void 0,oze=Ye(5,it(ot("Control"),it(Er(e=>Ht(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),gp("items",(e,t)=>{const r=e.$ref?Ar(t,e.$ref,t):e;return aze(r)||nze(r)})))),ize=Zce(rze),sze=e=>{const{data:t,id:r,enabled:o,uischema:i,path:s,handleChange:l,schema:c}=e,u=c.multipleOf?-Math.log10(c.multipleOf):void 0;return D.jsx(G6,{id:r,autoFocus:i.options&&i.options.focus,value:t,"aria-labelledby":s,onChange:d=>l(s,d),minValue:c.minimum??void 0,maxValue:c.maximum??void 0,isDisabled:!o,step:c.multipleOf??void 0,formatOptions:{signDisplay:"auto",maximumFractionDigits:u},children:D.jsxs(V6,{children:[D.jsx(z6,{}),D.jsx(Z6,{})]})})},lze=Ye(3,yp),cze=Qt(Tr(sze)),uze=e=>{const{data:t,className:r,id:o,enabled:i,schema:s,uischema:l,path:c,handleChange:u,options:d,t:f}=e,p=g.useMemo(()=>f("enum.none",p0["enum.none"],{schema:s,uischema:l,path:c}),[f,s,l,c]),m=g.useRef(null);return D.jsx(jd,{isClearable:!0,placeholder:p,ref:m,id:o,instanceId:o,options:d,name:"basePayment",value:d==null?void 0:d.find(b=>b.value===t),isDisabled:!i,isMulti:!1,className:r,onChange:b=>{u(c,b==null?void 0:b.value)},closeMenuOnSelect:!0})},dze=Ye(3,w_),fze=Gce(Pn(uze)),ZM=F.forwardRef(({className:e,type:t,...r},o)=>D.jsx("input",{type:t,className:ze("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...r}));ZM.displayName="Input";const pze=e=>{const{config:t,data:r,className:o,id:i,enabled:s,uischema:l,schema:c,path:u,handleChange:d}=e,f=c.maxLength,p=vi({},t,l.options);return D.jsx(ZM,{type:p.format==="password"?"password":"text",value:r||"",onChange:m=>d(u,m.target.value===""?void 0:m.target.value),className:o,id:i,disabled:!s,autoFocus:p.focus,placeholder:p.placeholder,maxLength:p.restrict?f:void 0,size:p.trim?f:void 0})},mze=Ye(2,vp),gze=Qt(Tr(pze));var qC="Collapsible",[hze,WM]=Jo(qC),[bze,UC]=hze(qC),qM=F.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:s,onOpenChange:l,...c}=e,[u=!1,d]=jl({prop:o,defaultProp:i,onChange:l});return D.jsx(bze,{scope:r,disabled:s,contentId:Cg(),open:u,onOpenToggle:F.useCallback(()=>d(f=>!f),[d]),children:D.jsx(Ot.div,{"data-state":XC(u),"data-disabled":s?"":void 0,...c,ref:t})})});qM.displayName=qC;var UM="CollapsibleTrigger",HM=F.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,i=UC(UM,r);return D.jsx(Ot.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":XC(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:t,onClick:Gt(e.onClick,i.onOpenToggle)})});HM.displayName=UM;var HC="CollapsibleContent",XM=F.forwardRef((e,t)=>{const{forceMount:r,...o}=e,i=UC(HC,e.__scopeCollapsible);return D.jsx(Ed,{present:r||i.open,children:({present:s})=>D.jsx(yze,{...o,ref:t,present:s})})});XM.displayName=HC;var yze=F.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:i,...s}=e,l=UC(HC,r),[c,u]=F.useState(o),d=F.useRef(null),f=$r(t,d),p=F.useRef(0),m=p.current,b=F.useRef(0),h=b.current,y=l.open||c,v=F.useRef(y),$=F.useRef(void 0);return F.useEffect(()=>{const C=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(C)},[]),Ko(()=>{const C=d.current;if(C){$.current=$.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const T=C.getBoundingClientRect();p.current=T.height,b.current=T.width,v.current||(C.style.transitionDuration=$.current.transitionDuration,C.style.animationName=$.current.animationName),u(o)}},[l.open,o]),D.jsx(Ot.div,{"data-state":XC(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!y,...s,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:y&&i})});function XC(e){return e?"open":"closed"}var vze=qM,$ze=HM,Cze=XM,lo="Accordion",xze=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[YC,wze,Aze]=ok(lo),[Xh,wqe]=Jo(lo,[Aze,WM]),JC=WM(),YM=g.forwardRef((e,t)=>{const{type:r,...o}=e,i=o,s=o;return D.jsx(YC.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?D.jsx(Dze,{...s,ref:t}):D.jsx(_ze,{...i,ref:t})})});YM.displayName=lo;var[JM,Eze]=Xh(lo),[KM,Tze]=Xh(lo,{collapsible:!1}),_ze=g.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},collapsible:s=!1,...l}=e,[c,u]=jl({prop:r,defaultProp:o,onChange:i});return D.jsx(JM,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:u,onItemClose:g.useCallback(()=>s&&u(""),[s,u]),children:D.jsx(KM,{scope:e.__scopeAccordion,collapsible:s,children:D.jsx(QM,{...l,ref:t})})})}),Dze=g.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},...s}=e,[l=[],c]=jl({prop:r,defaultProp:o,onChange:i}),u=g.useCallback(f=>c((p=[])=>[...p,f]),[c]),d=g.useCallback(f=>c((p=[])=>p.filter(m=>m!==f)),[c]);return D.jsx(JM,{scope:e.__scopeAccordion,value:l,onItemOpen:u,onItemClose:d,children:D.jsx(KM,{scope:e.__scopeAccordion,collapsible:!0,children:D.jsx(QM,{...s,ref:t})})})}),[Sze,Yh]=Xh(lo),QM=g.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:o,dir:i,orientation:s="vertical",...l}=e,c=g.useRef(null),u=$r(c,t),d=wze(r),p=L$(i)==="ltr",m=Gt(e.onKeyDown,b=>{var A;if(!xze.includes(b.key))return;const h=b.target,y=d().filter(I=>{var O;return!((O=I.ref.current)!=null&&O.disabled)}),v=y.findIndex(I=>I.ref.current===h),$=y.length;if(v===-1)return;b.preventDefault();let C=v;const T=0,x=$-1,w=()=>{C=v+1,C>x&&(C=T)},S=()=>{C=v-1,C<T&&(C=x)};switch(b.key){case"Home":C=T;break;case"End":C=x;break;case"ArrowRight":s==="horizontal"&&(p?w():S());break;case"ArrowDown":s==="vertical"&&w();break;case"ArrowLeft":s==="horizontal"&&(p?S():w());break;case"ArrowUp":s==="vertical"&&S();break}const P=C%$;(A=y[P].ref.current)==null||A.focus()});return D.jsx(Sze,{scope:r,disabled:o,direction:i,orientation:s,children:D.jsx(YC.Slot,{scope:r,children:D.jsx(Ot.div,{...l,"data-orientation":s,ref:u,onKeyDown:o?void 0:m})})})}),Jh="AccordionItem",[Pze,KC]=Xh(Jh),eF=g.forwardRef((e,t)=>{const{__scopeAccordion:r,value:o,...i}=e,s=Yh(Jh,r),l=Eze(Jh,r),c=JC(r),u=Cg(),d=o&&l.value.includes(o)||!1,f=s.disabled||e.disabled;return D.jsx(Pze,{scope:r,open:d,disabled:f,triggerId:u,children:D.jsx(vze,{"data-orientation":s.orientation,"data-state":iF(d),...c,...i,ref:t,disabled:f,open:d,onOpenChange:p=>{p?l.onItemOpen(o):l.onItemClose(o)}})})});eF.displayName=Jh;var tF="AccordionHeader",rF=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,i=Yh(lo,r),s=KC(tF,r);return D.jsx(Ot.h3,{"data-orientation":i.orientation,"data-state":iF(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});rF.displayName=tF;var QC="AccordionTrigger",aF=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,i=Yh(lo,r),s=KC(QC,r),l=Tze(QC,r),c=JC(r);return D.jsx(YC.ItemSlot,{scope:r,children:D.jsx($ze,{"aria-disabled":s.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...c,...o,ref:t})})});aF.displayName=QC;var nF="AccordionContent",oF=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,i=Yh(lo,r),s=KC(nF,r),l=JC(r);return D.jsx(Cze,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...l,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});oF.displayName=nF;function iF(e){return e?"open":"closed"}var Ize=YM,jze=eF,kze=rF,sF=aF,lF=oF;const cF=Ize,ex=F.forwardRef(({className:e,...t},r)=>D.jsx(jze,{ref:r,className:ze("border-b",e),...t}));ex.displayName="AccordionItem";const tx=F.forwardRef(({className:e,children:t,...r},o)=>D.jsx(kze,{className:"flex",children:D.jsxs(sF,{ref:o,className:ze("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,D.jsx(R$,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));tx.displayName=sF.displayName;const rx=F.forwardRef(({className:e,children:t,...r},o)=>D.jsx(lF,{ref:o,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:D.jsx("div",{className:ze("pb-4 pt-0",e),children:t})}));rx.displayName=lF.displayName;const ax=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("rounded-lg border bg-card text-card-foreground shadow-xs",e),...t}));ax.displayName="Card";const Nze=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("flex flex-col space-y-1.5 p-6",e),...t}));Nze.displayName="CardHeader";const Lze=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("text-2xl font-semibold leading-none tracking-tight",e),...t}));Lze.displayName="CardTitle";const Oze=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("text-sm text-muted-foreground",e),...t}));Oze.displayName="CardDescription";const nx=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("p-6 pt-0",e),...t}));nx.displayName="CardContent";const Bze=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("flex items-center p-6 pt-0",e),...t}));Bze.displayName="CardFooter";const{convertToValidClassName:Mze}=ho,Fze=({classNames:e,data:t,label:r,path:o,schema:i,errors:s,addItem:l,removeItems:c,uischema:u,uischemas:d,getStyleAsClassName:f,renderers:p,rootSchema:m,translations:b,enabled:h})=>{var V,k;const y=u,v=g.useMemo(()=>Qv(d??[],i,u.scope,o,void 0,u,m),[d,i,o,u,m]),$=s.length===0,T=[f?f("array.control.validation"):""].concat($?"":f?f("array.control.validation.error"):"").join(" "),x=f?f("array.control.add"):"",w=f?f("array.control.label"):"",S=f?f("array.child.controls"):"",P=f?f("array.child.controls.delete"):"",A=[f?f("array.control"):"",Mze(y.scope)].join(" "),I=()=>{l&&l(o,jc(i,m))()},O=Z=>{c&&c(o,[Z])()},j=((k=(V=m.properties)==null?void 0:V[o])==null?void 0:k.title)??r;return D.jsxs("div",{className:A,children:[D.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[D.jsx("span",{className:ze("text-lg font-bold",w),children:j}),D.jsx("div",{className:ze("text-destructive",T),children:s})]}),D.jsxs(cF,{type:"multiple",className:ze("space-y-4 pb-4",e==null?void 0:e.children),children:[(t==null?void 0:t.length)>0?Bb(0,t.length).map(Z=>{const U=cp(o,`${Z}`);return D.jsxs(ex,{value:`item-${Z}`,className:"rounded-lg border",children:[D.jsxs("div",{className:"flex flex-row gap-0 [&>h3]:flex-grow",children:[D.jsx(tx,{className:"hover:bg-muted/50 flex items-center justify-between gap-2 rounded-xl px-4 py-2 transition-colors",children:D.jsx("div",{className:ze("flex items-center space-x-2",S),children:D.jsxs("span",{className:w,children:[j," ",Z+1]})})}),D.jsxs(nr,{type:"button",variant:"ghost",size:"icon",className:P,onClick:()=>{O(Z)},disabled:!h,children:[D.jsx(_k,{className:"h-4 w-4"}),D.jsx("span",{className:"sr-only",children:b.removeAriaLabel})]})]}),D.jsx(rx,{className:"p-4",children:D.jsx(Ai,{schema:i,uischema:v||u,path:U,renderers:p},U)})]},Z)}):D.jsx(ax,{className:"border-2 border-dashed",children:D.jsx(nx,{className:"flex flex-col items-center justify-center p-8 text-center",children:D.jsxs(nr,{type:"button",disabled:!h,onClick:I,variant:"outline",children:[D.jsx(Ag,{className:"mr-2 h-4 w-4"}),b.addTooltip]})})}),(t==null?void 0:t.length)>0&&D.jsxs(nr,{onClick:I,type:"button",className:x,disabled:!h,variant:"outline",children:[D.jsx(Ag,{className:"mr-2 h-4 w-4"}),b.addTooltip]})]})]})},Rze=({schema:e,uischema:t,data:r,path:o,rootSchema:i,uischemas:s,addItem:l,getStyle:c,getStyleAsClassName:u,removeItems:d,moveUp:f,moveDown:p,id:m,visible:b,enabled:h,errors:y,translations:v})=>{const $=t,C=ho.createLabelDescriptionFrom($,e),T=C.show?C.text:"",x=`control ${ho.convertToValidClassName($.scope)}`,w=u?u("array.layout"):"",S=u?u("array.button"):"",P=u?u("array.children"):"",A={wrapper:x,fieldSet:w,button:S,children:P};return b?D.jsx(Fze,{classNames:A,data:r,label:T??"",path:o,schema:e,errors:y,arraySchema:e,addItem:l,removeItems:d,moveUp:f,moveDown:p,uischema:t,uischemas:s,getStyleAsClassName:u,rootSchema:i,id:m,visible:b,enabled:h,getStyle:c,translations:v}):null},Vze=Ye(5,Ls(Yv,Jv)),Gze=Mr(wp(Pn(Ap(Rze)))),zze=({renderers:e,cells:t,uischemas:r,schema:o,label:i,path:s,visible:l,enabled:c,uischema:u,rootSchema:d})=>{const f=g.useMemo(()=>Qv(r,o,u.scope,s,()=>Ae(s)?Ps.uiSchema(o,"VerticalLayout",void 0,d):{...Ps.uiSchema(o,"Group",void 0,d),label:i},u,d),[r,o,s,i,u,d]);return l?D.jsx(Ai,{visible:l,enabled:c,schema:o,uischema:f,path:s,renderers:e,cells:t}):null},Zze=Ye(2,x_),Wze=Fce(zze),{convertToValidClassName:qze}=ho,{isPrimitiveArrayControl:Uze,rankWith:Hze}=j_;class Xze extends g.Component{constructor(){super(...arguments);CF(this,"confirmDelete",(r,o)=>{const i=r.substring(0,r.lastIndexOf("."));this.props.removeItems&&this.props.removeItems(i,[o])()})}render(){const{addItem:r,uischema:o,schema:i,rootSchema:s,path:l,data:c,visible:u,errors:d,label:f,getStyleAsClassName:p,childErrors:m,translations:b,enabled:h}=this.props,y=o,v=(p==null?void 0:p("array.table.table"))||"",$=(p==null?void 0:p("array.table.label"))||"",C=(p==null?void 0:p("array.table.button"))||"",T=(p==null?void 0:p("array.table.validation"))||"",x=[(p==null?void 0:p("array.table"))||"",qze(y.scope)].join(" "),w=A=>({type:"Control",label:!1,scope:i.type==="object"?`#/properties/${A}`:"#"}),S=d.length===0,P=[T].concat(S?"":(p==null?void 0:p("array.table.validation.error"))||"").join(" ");return D.jsxs("div",{className:x,hidden:!u,children:[c&&c.length?D.jsxs("table",{className:v,children:[D.jsx("thead",{children:D.jsx("tr",{children:i.properties?_p(Dp,Ep(A=>i.properties?i.properties[A].type!=="array":!1),Tp(A=>D.jsx("th",{children:i.properties&&(i.properties[A].title??nD(A))},A)))(i.properties):D.jsx("th",{className:$,children:f})})}),D.jsxs("tbody",{children:[!c||!Array.isArray(c)||c.length===0?D.jsx("tr",{children:D.jsx("td",{children:b.noDataMessage})}):c.map((A,I)=>{const O=Ss.compose(l,`${I}`),j=xc(m,U=>Pc(U).startsWith(O)),V=(p==null?void 0:p("array.validation"))||"",k=(p==null?void 0:p("array.validation.error"))||"",Z=j?[V].concat(k).join(" "):V;return D.jsxs("tr",{children:[i.properties?_p(Dp,Ep(U=>i.properties?i.properties[U].type!=="array":!1),Tp(U=>{const X=Ss.compose(O,U.toString());return D.jsx("td",{children:D.jsx(Oc,{schema:Ca.schema(i,`#/properties/${_c(U)}`,s),uischema:w(_c(U)),path:O+"."+U})},X)}))(i.properties):D.jsxs("td",{children:[D.jsx(Oc,{schema:i,uischema:w(),path:O}),j&&D.jsx("span",{className:ze("text-destructive text-xs",Z),children:s0(j.map(U=>U.message),", ")})]},Ss.compose(O,I.toString())),D.jsx("td",{children:D.jsxs(nr,{type:"button",variant:"ghost",size:"icon",onClick:()=>{this.confirmDelete(O,I)},disabled:!h,children:[D.jsx(_k,{className:"h-4 w-4"}),D.jsx("span",{className:"sr-only",children:b.removeTooltip})]})})]},O)}),D.jsx("tr",{children:D.jsx("td",{children:D.jsxs(nr,{type:"button",variant:"outline",className:C,disabled:!h,onClick:r(l,jc(i,s)),children:[D.jsx(Ag,{className:"mr-2 h-4 w-4"}),b.addTooltip]})})})]})]}):D.jsx(ax,{className:"border-2 border-dashed",children:D.jsx(nx,{className:"flex flex-col items-center justify-center p-8 text-center",children:D.jsxs(nr,{type:"button",variant:"outline",disabled:!h,onClick:r(l,jc(i,s)),children:[D.jsx(Ag,{className:"mr-2 h-4 w-4"}),b.addTooltip]})})}),D.jsx("div",{className:P,children:S?"":d})]})}}const Yze=Mr(wp(Pn(Ap(Xze)))),Jze=Hze(4,Uze),Kze=({className:e,children:t,visible:r})=>D.jsx("div",{className:e,hidden:r==null?!1:!r,children:t}),Qze=(e,t,r,o,i)=>{const{renderers:s,cells:l}=Bs();return Ae(e.elements)?[]:e.elements.map((c,u)=>D.jsx("div",{className:r,children:D.jsx(Ai,{renderers:s,cells:l,uischema:c,schema:t,path:o,enabled:i})},`${o}-${u}`))},eZe=Ye(1,ot("CollapsingVerticalLayout")),tZe=e=>{const{data:t,...r}=e;return D.jsx(rZe,{...r})},rZe=g.memo(function({schema:t,uischema:r,path:o,visible:i,enabled:s,getStyle:l,getStyleAsClassName:c}){const u=r,d=u.elements?u.elements.length:0,f=c&&c("vertical.layout"),p=["vertical-layout-item"].concat(l?l("vertical.layout.item",d):[]).join(" ");return D.jsx("fieldset",{className:"group-layout pb-4",children:D.jsx(cF,{type:"single",collapsible:!0,children:D.jsxs(ex,{value:"item-1",className:"[&>div]:data-[state=open]:overflow-visible",children:[D.jsx(tx,{className:"text-muted-foreground text-sm font-normal",children:r.label}),D.jsx(rx,{className:"p-1",children:D.jsx(Kze,{className:f,uischema:r,schema:t,visible:i,enabled:s,path:o,getStyle:l,getStyleAsClassName:c,children:Qze(u,t,p,o,s)})})]})})})}),aZe=Mr(Lc(tZe,!1)),bn=[...kde,{tester:Zze,renderer:Wze},{tester:eZe,renderer:aZe},{tester:Vze,renderer:Gze},{tester:Jze,renderer:Yze},{tester:oze,renderer:ize}],yn=[...Nde,{tester:HGe,cell:XGe},{tester:o9e,cell:i9e},{tester:l8e,cell:c8e},{tester:oFe,cell:iFe},{tester:VGe,cell:GGe},{tester:WGe,cell:qGe},{tester:dze,cell:fze},{tester:lze,cell:cze},{tester:mze,cell:gze}],af=({dataModelSchema:e,defaultFieldsSchema:t={},advancedFieldsSchema:r,coverageTermFieldsSchema:o={},advancedUISchemaLayout:i="CollapsingVerticalLayout",advancedUISchemaLabel:s="See Advanced Details",coverageTermsUISchemaLabel:l="Coverage Terms"})=>{const c=g.useMemo(()=>{const d={type:"object",definitions:{...(t==null?void 0:t.definitions)??{},...e.definitions,...(r==null?void 0:r.definitions)??{},...(o==null?void 0:o.definitions)??{}},properties:{default:{},data:{type:e.type,properties:e.properties,required:e.required,title:""},coverageTerms:{},advanced:{}}};return t&&(d.properties.default={title:"",type:t.type,properties:t.properties,required:t.required}),r&&(d.properties.advanced={title:"",type:r.type,properties:r.properties,required:r.required}),o&&(d.properties.coverageTerms={title:"",type:o.type,properties:o.properties,required:o.required}),d},[e,t,r,o]),u=g.useMemo(()=>{const d=xi(c);if(d.elements=d.elements.filter(f=>f.scope!=="#/properties/coverageTerms"&&f.scope!=="#/properties/advanced"),r){const f=xi(r,i,"#/properties/advanced");f&&(f.label=s,d.elements.push(f))}if(o&&Object.keys(o.properties||{}).length>0){const f=xi(o,"Group","#/properties/coverageTerms");f.label=l,d.elements.push(f)}return d},[r,c,i,s,o,l]);return{schema:c,uiSchema:u}},nZe=(e,t,r)=>{const o=["-"],i=e.documents??{},s=[];Object.keys(i).forEach(x=>{i[x].scope==="invoice"&&s.push(x)});const l=s.length?s:["-"],c=Object.keys(e.autoRenewalPlans??{}),u=c.length?c:["-"],d=Object.keys(e.delinquencyPlans??{}),f=d.length?d:o,p=[],m=o,b=Object.keys(e.shortfallTolerancePlans??{}),h=b.length?b:o,y=Object.keys(e.installmentPlans??{}),v=y.length?y:o,$={autoRenewalPlanName:{type:"string",title:(r==null?void 0:r.autoRenewalPlanName)??"Auto Renewal Plan Name",enum:u,readOnly:c.length===0},delinquencyPlanName:{type:"string",title:(r==null?void 0:r.delinquencyPlanName)??"Delinquency Plan Name",enum:f,readOnly:d.length===0},excessCreditPlanName:{type:"string",title:(r==null?void 0:r.excessCreditPlanName)??"Excess Credit Plan Name",enum:m,readOnly:p.length===0},shortfallTolerancePlanName:{type:"string",title:(r==null?void 0:r.shortfallTolerancePlanName)??"Shortfall Tolerance Plan Name",enum:h,readOnly:b.length===0},billingLevel:{type:"string",title:(r==null?void 0:r.billingLevel)??"Billing Level",enum:qa.options},invoiceDocument:{type:"string",title:(r==null?void 0:r.invoiceDocument)??"Invoice Document",enum:l,readOnly:s.length===0},installmentPlanName:{type:"string",title:(r==null?void 0:r.installmentPlanName)??"Installment Plan",enum:v,readOnly:y.length===0}},C=[];return Object.keys($).forEach(x=>{var w,S;x==="installmentPlanName"&&((S=(w=t.preferences)==null?void 0:w.installmentPreferences)!=null&&S.installmentPlanName)?C.push("installmentPlanName"):t[x]&&C.push(x)}),{title:"",type:"object",definitions:{},required:C,properties:$}},nf=new ya({allErrors:!0});sn(nf),va(nf),cn(nf);const uF=({dataModel:e,accountType:t,disabled:r,handleSubmit:o,isSubmitting:i,preventFormResetOnDisabled:s=!0,hideSubmitButton:l=!1,hideAdvancedFields:c=!1,validateOnSubmit:u=!1,account:d,submitButtonText:f,id:p,titles:m={}})=>{const b=e.accounts??{},h=e.dataTypes??{},y=g.useMemo(()=>({billingLevel:qa.enum.policy,autoRenewalPlanName:e.defaultAutoRenewalPlan,delinquencyPlanName:e.defaultDelinquencyPlan,shortfallTolerancePlanName:e.defaultShortfallTolerancePlan,invoiceDocument:e.defaultInvoiceDocument,preferences:{installmentPreferences:{installmentPlanName:e.defaultInstallmentPlan}},autoValidate:!0,data:{}}),[e.defaultAutoRenewalPlan,e.defaultDelinquencyPlan,e.defaultShortfallTolerancePlan,e.defaultInvoiceDocument,e.defaultInstallmentPlan]),v=g.useMemo(()=>c?void 0:nZe(e,y,m),[e,y,c,m]),[$,C]=g.useState(!1),[T,x]=g.useState(d),[w,S]=g.useState(T$({accountType:t,account:d,defaultValues:y}));g.useEffect(()=>{if(!yi(d,T)){x(d);const j=T$({accountType:t,account:d,defaultValues:y});S(j)}},[d,t,y,T]),g.useEffect(()=>{r&&!s&&S(T$({accountType:t,account:d,defaultValues:y}))},[r,d,s,t,y]);const P=en({data:b[t].data??{},dataTypes:h,scope:["Q","P"],rootDisplayName:b[t].displayName??t,account:d,truthyLabel:m==null?void 0:m.truthyLabel,falsyLabel:m==null?void 0:m.falsyLabel}),{schema:A,uiSchema:I}=af({dataModelSchema:P,advancedFieldsSchema:v,advancedUISchemaLabel:m==null?void 0:m.seeAdvancedDetails}),O=j=>{j.preventDefault(),$||C(!0);const V=nf.validate(A,w);if(!(u&&!V))if(d){const k=Rj({type:t,autoValidate:!w.saveAsDraft,data:w.data,advanced:w.advanced,account:d});o(k)}else{const k=Rj({type:t,autoValidate:!w.saveAsDraft,data:w.data,advanced:w.advanced});o(k)}};return D.jsx(wa.Provider,{value:ln,children:D.jsxs("form",{onSubmit:O,id:p,className:"@container flex w-full border-spacing-0 flex-col gap-2",children:[D.jsx(za,{ajv:nf,cells:yn,renderers:bn,data:w,readonly:r||i,onChange:({data:j})=>S(j),schema:A,i18n:{translateError:Hn},validationMode:u&&$?"ValidateAndShow":"NoValidation",uischema:I}),!l&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:r||i,children:f??"Update"})]})})};uF.displayName="AccountForm";var oZe=Hy;function iZe(e){return oZe(e)?void 0:e}var sZe=iZe,lZe=ps,cZe=np,uZe=ZT,dZe=gs,fZe=Ds,pZe=sZe,mZe=ip,gZe=OE,hZe=1,bZe=2,yZe=4,vZe=mZe(function(e,t){var r={};if(e==null)return r;var o=!1;t=lZe(t,function(s){return s=dZe(s,e),o||(o=s.length>1),s}),fZe(e,gZe(e),r),o&&(r=cZe(r,hZe|bZe|yZe,pZe));for(var i=t.length;i--;)uZe(r,t[i]);return r}),$Ze=vZe;const ox=We($Ze);var CZe=Pf,xZe=FT,wZe=gs;function AZe(e,t,r){for(var o=-1,i=t.length,s={};++o<i;){var l=t[o],c=CZe(e,l);r(c,l)&&xZe(s,wZe(l,e),c)}return s}var EZe=AZe,TZe=EZe,_Ze=fw;function DZe(e,t){return TZe(e,t,function(r,o){return _Ze(e,o)})}var SZe=DZe,PZe=SZe,IZe=ip,jZe=IZe(function(e,t){return e==null?{}:PZe(e,t)}),kZe=jZe;const NZe=We(kZe),of=(e,t,r)=>{const o={title:r??"Coverage Terms",type:"object",definitions:{},required:[],properties:{}},i=e.filter(u=>{var f;const{name:d}=Sm(u);return(f=t==null?void 0:t[d])==null?void 0:f.options}),s=e.filter(u=>{var f;const{name:d}=Sm(u);return(f=t==null?void 0:t[d])==null?void 0:f.value});i.forEach(u=>{const{name:d,quantifier:f}=Sm(u),p=f==="";if(!t||!t[d])return;const m=t[d],b=m.options??[],h={oneOf:Object.entries(b).map(([y,v])=>{const $=y.startsWith("*")?y.substring(1):y;return{const:$,title:v.displayName||$}}),title:m.displayName};o.properties&&!o.properties[d]&&(o.properties[d]=h),o.required&&p&&!o.required.includes(d)&&o.required.push(d)});const l={};s.forEach(u=>{const{name:d}=Sm(u),f=t==null?void 0:t[d];if(!f)return;const p=f.value;p&&(l[d]={...p})});const c=en({data:l,scope:["Q","P"]});return o.properties={...o.properties,...c.properties},o},LZe=(e,t,r)=>{const o=["-"],i=Object.keys(e.delinquencyPlans??{}),s=i.length?i:o,l=Object.keys(e.autoRenewalPlans),c=l.length?l:o;return{Advanced:{title:"",type:"object",definitions:{},required:[],properties:{billingLevel:{type:"string",enum:["account","inherit","policy"],title:(r==null?void 0:r.billingLevel)??"Billing Level"},billingTrigger:{type:"string",enum:["accept","issue"],title:(r==null?void 0:r.billingTrigger)??"Billing Trigger"},durationBasis:{type:"string",enum:["years","months","weeks","days","hours"],title:(r==null?void 0:r.durationBasis)??"Duration Basis",readOnly:t},delinquencyPlanName:{type:"string",title:(r==null?void 0:r.delinquencyPlanName)??"Delinquency Plan",enum:s,readOnly:i.length===0},autoRenewalPlanName:{type:"string",title:(r==null?void 0:r.autoRenewalPlanName)??"Auto Renewal Plan",enum:c,readOnly:l.length===0}}}}},OZe=(e,t,r)=>{const o=["-"],i=Object.keys(e.installmentPlans??{}),s=i.length?i:o;return{Default:{title:"",type:"object",definitions:{},required:[],properties:{startTime:{title:(r==null?void 0:r.startTime)??"Effective Date",type:"string",format:"date-time",timezone:t},endTime:{title:(r==null?void 0:r.endTime)??"Expiration Date",type:"string",format:"date-time",timezone:t},expirationTime:{title:(r==null?void 0:r.expirationTime)??"Quote Valid until",type:"string",format:"date-time",timezone:t},installmentPlanName:{type:"string",title:(r==null?void 0:r.installmentPlanName)??"Installment Plan",enum:s,readOnly:i.length===0},currency:{type:"string",enum:zs.options,title:(r==null?void 0:r.currency)??"Currency"},timezone:{type:"string",enum:_D.options,title:(r==null?void 0:r.timezone)??"Timezone"}}}}},sf=new ya({allErrors:!0});sn(sf),va(sf),cn(sf);const dF=({quote:e,dataModel:t,dataTypes:r,disabled:o,handleSubmit:i,isSubmitting:s,preventFormResetOnDisabled:l=!0,validateOnSubmit:c=!1,hideSubmitButton:u=!1,hideDefaultFields:d=!1,hideAdvancedFields:f=!1,hideCoverageTerms:p=!1,submitButtonText:m,id:b,titles:h,getEvaluatedConstraints:y,dependencyMap:v,hideAllFields:$=!1,hiddenExceptions:C=[]})=>{var M;const T=ai(),[x,w]=g.useState(void 0),S=v&&y,[P,A]=g.useState(e),I=g.useMemo(()=>Tt(t.products,e.productName,void 0),[t,e.productName]),[O,j]=g.useState(l$(e,I??{},t)),[V,k]=g.useState(!1),Z=Tt(e,"timezone",T),U=g.useMemo(()=>S?E$({data:O,locator:e.locator,dependencyMap:v}):{},[S,O,v,e.locator]);g.useEffect(()=>{(async()=>{var R;if(U[e.locator]&&Object.keys(U[e.locator]).length>0&&y&&!x){const W=await y(U,((R=e.element)==null?void 0:R.locator)??"",e.locator);w(W)}})()},[e.locator,(M=e.element)==null?void 0:M.locator,x,U,y]),g.useEffect(()=>{yi(e,P)||(A(e),j(l$(e,I??{},t)))},[t,P,I,e]),g.useEffect(()=>{o&&!l&&j(l$(e,I??{},t))},[o,e,l,I,t]);let X=g.useMemo(()=>(I==null?void 0:I.data)??{},[I==null?void 0:I.data]);$&&C.length>0&&(X=NZe(X,C));const ee=g.useMemo(()=>en({data:X,dataTypes:r,scope:["Q","P"],evaluatedConstraints:x,rootDisplayName:(I==null?void 0:I.displayName)??e.type??"Quote",quote:e,truthyLabel:h==null?void 0:h.truthyLabel,falsyLabel:h==null?void 0:h.falsyLabel,hiddenExceptions:C,timezone:Z}),[X,I==null?void 0:I.displayName,r,v,x,e,h,C,Z]),te=of(I!=null&&I.coverageTerms?I.coverageTerms:[],t.coverageTerms??{},h==null?void 0:h.coverageTerms);ee.definitions={...ee.definitions,...d||$?{}:OZe(t,e.timezone??(I==null?void 0:I.defaultTimeZone)??T,h),...f||$?{}:LZe(t,!0,h),...(I==null?void 0:I.coverageTerms)&&!p&&{coverageTerms:te}},ee.properties={...$&&C.length===0?{}:ee.properties,...d||$?{}:{default:{title:(h==null?void 0:h.details)??"Details",default:{},$ref:"#/definitions/Default"}},...f||$?{}:{advanced:{title:(h==null?void 0:h.seeAdvancedDetails)??"See Advanced Details",default:{},$ref:"#/definitions/Advanced"}},...(I==null?void 0:I.coverageTerms)&&!p&&!$&&{coverageTerms:{title:(h==null?void 0:h.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const de=z=>{z.preventDefault(),V||k(!0);const R=sf.validate(ee,O);if(c&&!R)return;let W=ox(O,["coverageTerms","default","advanced"]);S&&(W=_$(W,x,e.locator));const Q=_Le({data:W,coverageTerms:O.coverageTerms,advanced:O.advanced,default:O.default,quote:e});return i(Q),O},G=Ad(ee),N=G.elements.find(z=>z.scope==="#/properties/default"),B=G.elements.find(z=>z.scope==="#/properties/advanced"),L=G.elements.find(z=>z.scope==="#/properties/coverageTerms");if(G.elements=G.elements.filter(z=>z.scope!=="#/properties/default"&&z.scope!=="#/properties/advanced"&&z.scope!=="#/properties/coverageTerms"),B){const z={type:"CollapsingVerticalLayout",label:(h==null?void 0:h.seeAdvancedDetails)??"See Advanced Details",elements:[B]};G.elements.unshift(z)}N&&G.elements.unshift(N),Array.isArray(I==null?void 0:I.coverageTerms)&&(I==null?void 0:I.coverageTerms.length)>0&&L&&G.elements.push(L);const E=o||s,_=g.useMemo(()=>Yn(ln,E),[E]);return D.jsx(wa.Provider,{value:_,children:D.jsxs("form",{onSubmit:de,id:b,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:sf,uischema:G,cells:yn,renderers:bn,data:O,readonly:E,i18n:{translateError:Hn},schema:ee,onChange:({data:z})=>{j(z),w(void 0)},validationMode:c&&V?"ValidateAndShow":"NoValidation"}),!u&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:E,children:m??"Update"})]})})};dF.displayName="QuoteForm";const lf=new ya({allErrors:!0});sn(lf),va(lf),cn(lf);const fF=({elementModel:e,dataTypes:t,disabled:r,handleSubmit:o,dataModel:i,timezone:s,coverageTerms:l,isSubmitting:c,preventFormResetOnDisabled:u=!0,hideSubmitButton:d=!1,element:f,validateOnSubmit:p=!1,hideAllFields:m=!1,hideCoverageTerms:b=!1,submitButtonText:h,id:y,titles:v,getEvaluatedConstraints:$,dependencyMap:C,quote:T})=>{const[x,w]=g.useState(f),[S,P]=g.useState(l),[A,I]=g.useState(!1),[O,j]=g.useState(void 0),[V,k]=g.useState(dP(f,e.coverageTerms??[],l));g.useEffect(()=>{(!yi(f,x)||!yi(l,S))&&(w(f),P(l),k(dP(f,e.coverageTerms??[],l)))},[f,l,x,S,e.coverageTerms]);const Z=C&&!!$,U=g.useMemo(()=>Z?E$({data:V,locator:x.locator,dependencyMap:C}):{},[Z,V,C,x.locator]);g.useEffect(()=>{(async()=>{if(U[x.locator]&&Object.keys(U[x.locator]).length>0&&$&&!O){const E=await $(U,x.tenantLocator??"",x.locator);j(E)}})()},[x.locator,x.tenantLocator,O,U,$]),g.useEffect(()=>{r&&!u&&k(f?{...f.data,coverageTerms:f.coverageTerms}:{})},[r,f,u]);const X=g.useMemo(()=>en({data:e.data??{},dataTypes:t,scope:["P","Q"],quote:T,ignoreConstraints:!Z,evaluatedConstraints:O,rootDisplayName:e.displayName??f.type??"Element",element:f,truthyLabel:v==null?void 0:v.truthyLabel,falsyLabel:v==null?void 0:v.falsyLabel,timezone:s}),[e,t,f,Z,C,O,v,s,T]),ee=of(e.coverageTerms??[],i.coverageTerms??{},v==null?void 0:v.coverageTerms);X.definitions={...X.definitions,...(e==null?void 0:e.coverageTerms)&&!b&&{coverageTerms:ee}},X.properties={...m?{}:X.properties,...(e==null?void 0:e.coverageTerms)&&!b&&!m&&{coverageTerms:{title:(v==null?void 0:v.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const te=L=>{L.preventDefault(),A||I(!0);const E=lf.validate(X,V);if(p&&!E)return;let _=ox(V,["coverageTerms"]);Z&&(_=_$(_,O,x.locator));const M=DLe({element:x,data:_??{},coverageTerms:V.coverageTerms}),z=Qp.parse(M);o&&o(z)},de=Ad(X),G=de.elements.find(L=>L.scope==="#/properties/coverageTerms");de.elements=de.elements.filter(L=>L.scope!=="#/properties/default"&&L.scope!=="#/properties/advanced"&&L.scope!=="#/properties/coverageTerms"),Array.isArray(e==null?void 0:e.coverageTerms)&&(e==null?void 0:e.coverageTerms.length)>0&&G&&de.elements.push(G);const N=r||c,B=g.useMemo(()=>Yn(ln,N),[N]);return D.jsx(wa.Provider,{value:B,children:D.jsxs("form",{onSubmit:te,id:y,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:lf,uischema:de,cells:yn,renderers:bn,data:V,readonly:N,onChange:L=>{const{data:E}=L;k(E),j(void 0)},i18n:{translateError:Hn},schema:X,validationMode:p&&A?"ValidateAndShow":"NoValidation"}),!d&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:r||c,children:h??"Update"})]})})};fF.displayName="ElementForm";const BZe=(e,t,r)=>{const o=["-"],i=Object.keys(e.delinquencyPlans??{}),s=i.length?i:o,l=Object.keys(e.autoRenewalPlans),c=l.length?l:o;return{Advanced:{title:"",type:"object",definitions:{},required:[],properties:{billingLevel:{type:"string",enum:["account","inherit","policy"],title:(r==null?void 0:r.billingLevel)??"Billing Level"},billingTrigger:{type:"string",enum:["accept","issue"],title:(r==null?void 0:r.billingTrigger)??"Billing Trigger"},durationBasis:{type:"string",enum:["years","months","weeks","days","hours"],title:(r==null?void 0:r.durationBasis)??"Duration Basis",readOnly:t},delinquencyPlanName:{type:"string",title:(r==null?void 0:r.delinquencyPlanName)??"Delinquency Plan",enum:s,readOnly:i.length===0},autoRenewalPlanName:{type:"string",title:(r==null?void 0:r.autoRenewalPlanName)??"Auto Renewal Plan",enum:c,readOnly:l.length===0}}}}},MZe=(e,t)=>({Default:{title:"",type:"object",definitions:{},required:[],properties:{startTime:{title:(t==null?void 0:t.startTime)??"Effective Date",type:"string",format:"date-time",timezone:e},endTime:{title:(t==null?void 0:t.endTime)??"Expiration Date",type:"string",format:"date-time",timezone:e},currency:{type:"string",enum:zs.options,title:(t==null?void 0:t.currency)??"Currency"},timezone:{type:"string",enum:_D.options,title:(t==null?void 0:t.timezone)??"Timezone"}}}}),Kh=new ya({allErrors:!0});sn(Kh),va(Kh),cn(Kh);const pF=({policy:e,segment:t,dataModel:r,hideAllFields:o=!1,id:i,titles:s={}})=>{const l=g.useMemo(()=>Tt(r.products,e.productName,void 0),[r,e.productName]),c=r.dataTypes,u=t.element,d=g.useMemo(()=>ITe(e,l??{},u,r),[e,l,u,r]),f=en({data:(l==null?void 0:l.data)??{},dataTypes:c,scope:["P"],element:u,ignoreConstraints:!0,rootDisplayName:s.formTitle,truthyLabel:s.truthyLabel,falsyLabel:s.falsyLabel,timezone:e.timezone??ai()}),p=of((l==null?void 0:l.coverageTerms)??[],r.coverageTerms??{},s==null?void 0:s.coverageTerms);f.definitions={...f.definitions,...!o&&MZe(e.timezone??ai(),s),...!o&&BZe(r,!0,s),...!o&&(l==null?void 0:l.coverageTerms)&&{coverageTerms:p}},f.properties={...f.properties,...!o&&{default:{title:(s==null?void 0:s.details)??"Details",default:{},$ref:"#/definitions/Default"}},...!o&&{advanced:{title:(s==null?void 0:s.seeAdvancedDetails)??"See Advanced Details",default:{},$ref:"#/definitions/Advanced"}},...(l==null?void 0:l.coverageTerms)&&!o&&{coverageTerms:{title:(s==null?void 0:s.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const m=Ad(f),b=m.elements.find($=>$.scope==="#/properties/default"),h=m.elements.find($=>$.scope==="#/properties/advanced"),y=m.elements.find($=>$.scope==="#/properties/coverageTerms");if(m.elements=m.elements.filter($=>$.scope!=="#/properties/default"&&$.scope!=="#/properties/advanced"&&$.scope!=="#/properties/coverageTerms"),h){const $={type:"CollapsingVerticalLayout",label:(s==null?void 0:s.seeAdvancedDetails)??"See Advanced Details",elements:[h]};m.elements.unshift($)}b&&m.elements.unshift(b),Array.isArray(l==null?void 0:l.coverageTerms)&&(l==null?void 0:l.coverageTerms.length)>0&&y&&m.elements.push(y);const v=g.useMemo(()=>Yn(ln,!0),[]);return D.jsx(wa.Provider,{value:v,children:D.jsx("form",{id:i,className:"@container flex w-full flex-col gap-2",children:D.jsx(za,{ajv:Kh,uischema:m,cells:yn,renderers:bn,data:d,readonly:!0,schema:f,validationMode:"NoValidation"})})})};pF.displayName="PolicyForm";const cf=new ya({allErrors:!0});sn(cf),va(cf),cn(cf);const mF=({accountLocator:e,invoiceLocator:t,balance:r,currency:o,validateOnSubmit:i=!1,hideSubmitButton:s=!1,submitButtonText:l,handleSubmit:c,isSubmitting:u,disabled:d,id:f,titles:p,invoiceBalance:m})=>{const[b,h]=g.useState(!1),[y,v]=g.useState({default:{balance:r,invoiceBalance:m}}),$={title:"",type:"object",definitions:{},required:["amount"],properties:{invoiceBalance:{title:(p==null?void 0:p.invoiceBalance)||"Invoice Balance",type:"number",currency:o,readOnly:!0},balance:{title:(p==null?void 0:p.balance)||"Balance",type:"number",currency:o,readOnly:!0},amount:{title:(p==null?void 0:p.amountToApply)||"Amount to Apply",type:"number",exclusiveMinimum:0,maximum:r,currency:o}}},{schema:C,uiSchema:T}=af({dataModelSchema:{},defaultFieldsSchema:$}),x=d||u,w=g.useMemo(()=>Yn(ln,!0),[]),S=P=>{P.preventDefault(),b||h(!0);const A=cf.validate(C,y);if(i&&!A)return;const I={accountLocator:e,amount:y.default.amount??0,currency:o,sources:[{containerLocator:e,containerType:"account"}],targets:[{containerLocator:t,containerType:G0.enum.invoice}]};return c(I),y};return D.jsx(wa.Provider,{value:w,children:D.jsxs("form",{id:f,onSubmit:S,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:cf,uischema:T,cells:yn,renderers:bn,data:y,readonly:x,schema:C,onChange:({data:P})=>{v(P)},i18n:{translateError:Hn},validationMode:i&&b?"ValidateAndShow":"NoValidation"}),!s&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:x,children:l??"Update"})]})})};mF.displayName="ExistingPaymentForm";var FZe=xw(),RZe=FZe(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),VZe=RZe;const gF=We(VZe),GZe=({payments:e,currency:t,titles:r})=>({title:"",type:"object",definitions:{},required:["amount","type"],properties:{invoiceBalance:{title:(r==null?void 0:r.invoiceBalance)||"Invoice Balance",type:"number",currency:t,readOnly:!0},amount:{title:(r==null?void 0:r.amount)||"Amount",type:"number",exclusiveMinimum:0,currency:t},type:{title:(r==null?void 0:r.type)||"Type",oneOf:Object.entries(e).map(([o,i])=>({const:o,title:i.displayName||o}))},transactionMethod:{title:(r==null?void 0:r.transactionMethod)||"Method",oneOf:B3.options.map(o=>{var i;return{const:o,title:((i=r==null?void 0:r.transactionMethods)==null?void 0:i[o])||gF(o)}})},transactionNumber:{title:(r==null?void 0:r.transactionNumber)||"Transaction Id",type:"string"}}}),uf=new ya({allErrors:!0});sn(uf),va(uf),cn(uf);const zZe=e=>({data:{},default:{invoiceBalance:e,amount:e}}),hF=({accountLocator:e,invoiceLocator:t,currency:r,validateOnSubmit:o=!1,hideSubmitButton:i=!1,submitButtonText:s,handleSubmit:l,isSubmitting:c,disabled:u,dataModel:d,id:f,titles:p,invoiceBalance:m})=>{const[b,h]=g.useState(!1),y=d.dataTypes,[v,$]=g.useState(zZe(m)),C=GZe({payments:d.payments??{},currency:r,titles:p}),T=g.useMemo(()=>{var O,j;if(!v.default.type)return{};const I=((j=(O=d.payments)==null?void 0:O[v.default.type])==null?void 0:j.data)??{};return en({data:I,dataTypes:y,scope:["P"],rootDisplayName:(p==null?void 0:p.formTitle)||"",truthyLabel:p==null?void 0:p.truthyLabel,falsyLabel:p==null?void 0:p.falsyLabel})},[d,y,p==null?void 0:p.formTitle,v.default.type,p==null?void 0:p.truthyLabel,p==null?void 0:p.falsyLabel]),{schema:x,uiSchema:w}=af({dataModelSchema:T,defaultFieldsSchema:C}),S=u||c,P=g.useMemo(()=>Yn(ln,!0),[]),A=I=>{I.preventDefault(),b||h(!0);const O=uf.validate(x,v);if(o&&!O)return;const j={amount:v.default.amount??0,type:v.default.type??"",useDefaultFinancialInstrument:!1,currency:r,data:{...v.data},targets:[{containerLocator:t,containerType:G0.enum.invoice}],accountLocator:e,transactionMethod:v.default.transactionMethod,transactionNumber:v.default.transactionNumber};return l(j),v};return D.jsx(wa.Provider,{value:P,children:D.jsxs("form",{id:f,onSubmit:A,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:uf,uischema:w,cells:yn,renderers:bn,data:v,readonly:S,schema:x,onChange:({data:I})=>{I.default.type!==v.default.type?$({...I,data:{}}):$(I)},i18n:{translateError:Hn},validationMode:o&&b?"ValidateAndShow":"NoValidation"}),!i&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:S,children:s??"Update"})]})})};hF.displayName="NewPaymentForm";const df=new ya({allErrors:!0});sn(df),va(df),cn(df);const bF=({amount:e,reversalTypes:t,currency:r,validateOnSubmit:o=!1,hideSubmitButton:i=!1,submitButtonText:s,handleSubmit:l,isSubmitting:c,disabled:u,id:d,titles:f})=>{const[p,m]=g.useState(!1),[b,h]=g.useState({default:{amount:e,reversalType:""}}),y=Object.entries(t??{}).flatMap(([S,P])=>P.creditType!==A3.enum.payment?{const:S,title:S}:[]),v={title:"",type:"object",definitions:{},required:["reversalType"],properties:{amount:{title:(f==null?void 0:f.amountToReverse)||"Amount to Reverse",type:"number",exclusiveMinimum:0,currency:r,readOnly:!0},reversalType:{title:(f==null?void 0:f.reversalType)||"Reason for Reverse?",type:"string",oneOf:y}}},{schema:$,uiSchema:C}=af({dataModelSchema:{},defaultFieldsSchema:v}),T=u||c,x=g.useMemo(()=>Yn(ln,!0),[]),w=S=>{S.preventDefault(),p||m(!0);const P=df.validate($,b);if(o&&!P)return;const A={reversalType:b.default.reversalType};return l(A),b};return D.jsx(wa.Provider,{value:x,children:D.jsxs("form",{id:d,onSubmit:w,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:df,uischema:C,cells:yn,renderers:bn,data:b,readonly:T,schema:$,onChange:({data:S})=>{h(S)},i18n:{translateError:Hn},validationMode:o&&p?"ValidateAndShow":"NoValidation"}),!i&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:T,children:s??"Update"})]})})};bF.displayName="ReversePaymentForm";const ff=new ya({allErrors:!0});sn(ff),va(ff),cn(ff);const yF=({elementResponse:e,handleSubmit:t,paramsChangeInstruction:r,preventFormResetOnDisabled:o=!0,disabled:i=!1,hideSubmitButton:s=!1,validateOnSubmit:l=!1,isSubmitting:c=!1,submitButtonText:u,id:d,dataTypes:f,productModel:p,timezone:m,coverageTerms:b,titles:h={},getEvaluatedConstraints:y,dependencyMap:v})=>{const[$,C]=g.useState(e),[T,x]=g.useState(void 0),w=v&&y,[S,P]=g.useState(T1({elementResponse:e,coverageTermsDataModel:b,coverageTerms:p.coverageTerms??[]})),A=g.useMemo(()=>w?E$({data:S,locator:e.staticLocator,dependencyMap:v}):{},[w,S,v,e.staticLocator]);g.useEffect(()=>{(async()=>{const te=e;if(A[te.staticLocator]&&Object.keys(A[te.staticLocator]).length>0&&y&&!T){const de=await y(A,te.tenantLocator??"",te.staticLocator);x(de)}})()},[e,T,A,y]),g.useEffect(()=>{yi(e,$)||(C(e),P(T1({elementResponse:e,coverageTermsDataModel:b,coverageTerms:p.coverageTerms??[]})))},[b,e,$,p.coverageTerms]),g.useEffect(()=>{i&&!o&&P(T1({elementResponse:e,coverageTermsDataModel:b,coverageTerms:p.coverageTerms??[]}))},[b,i,e,r,o,p.coverageTerms]);const[I,O]=g.useState(!1),j=i||c,V=g.useMemo(()=>en({data:p.data??{},dataTypes:f,scope:["P"],evaluatedConstraints:T,transactionElement:e,rootDisplayName:p.displayName??(h==null?void 0:h.formTitle)??"Transaction",truthyLabel:h==null?void 0:h.truthyLabel,falsyLabel:h==null?void 0:h.falsyLabel,timezone:m}),[f,e,v,T,p.data,p.displayName,m,h==null?void 0:h.formTitle,h==null?void 0:h.truthyLabel,h==null?void 0:h.falsyLabel]),k=of(p.coverageTerms??[],b??{},h==null?void 0:h.coverageTerms);V.definitions={...V.definitions,...p.coverageTerms&&{coverageTerms:k}},V.properties={...V.properties,...p.coverageTerms&&{coverageTerms:{title:(h==null?void 0:h.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const Z=Ad(V),U=g.useMemo(()=>Yn(ln,j),[j]),X=ee=>{ee.preventDefault(),I||O(!0);const te=ff.validate(V,S);if(l&&!te)return;let de=ox(S,["coverageTerms"]);w&&(de=_$(de,T,e.locator));const G=mDe({data:de,coverageTerms:S.coverageTerms,element:e,timezone:p.defaultTimeZone??"UTC"});return t(G),S};return D.jsx(wa.Provider,{value:U,children:D.jsxs("form",{id:d,onSubmit:X,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:ff,uischema:Z,cells:yn,renderers:bn,data:S,readonly:j,i18n:{translateError:Hn},schema:V,onChange:({data:ee})=>{P(ee),x(void 0)},validationMode:l&&I?"ValidateAndShow":"NoValidation"}),!s&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:j,children:u??"Update"})]})})};yF.displayName="InitializedTransactionForm";const ZZe={Default:{title:"",type:"object",definitions:{},required:[],properties:{effectiveTime:{title:"Effective Time",type:"string",format:"date"},newPolicyEndDate:{title:"New Policy End Date",type:"string",format:"date"}}}},pf=new ya({allErrors:!0});sn(pf),va(pf),cn(pf);const vF=({transactionSnapshot:e,handleSubmit:t,paramsChangeInstruction:r,modifyChangeInstruction:o,preventFormResetOnDisabled:i=!0,disabled:s=!1,hideSubmitButton:l=!1,validateOnSubmit:c=!1,isSubmitting:u=!1,submitButtonText:d,id:f,dataTypes:p,productModel:m,coverageTerms:b,titles:h={}})=>{const[y,v]=g.useState(E1({paramsChangeInstruction:r,modifyChangeInstruction:o,transactionSnapshot:e,coverageTermsDataModel:b,coverageTerms:m.coverageTerms??[],timezone:m.defaultTimeZone??"UTC"}));g.useEffect(()=>{v(E1({paramsChangeInstruction:r,modifyChangeInstruction:o,transactionSnapshot:e,coverageTermsDataModel:b,coverageTerms:m.coverageTerms??[],timezone:m.defaultTimeZone??"UTC"}))},[b,o,r,e,m.coverageTerms,m.defaultTimeZone]),g.useEffect(()=>{s&&!i&&v(E1({paramsChangeInstruction:r,modifyChangeInstruction:o,transactionSnapshot:e,coverageTermsDataModel:b,coverageTerms:m.coverageTerms??[],timezone:m.defaultTimeZone??"UTC"}))},[b,s,o,r,i,e,m.coverageTerms,m.defaultTimeZone]);const[$,C]=g.useState(!1),T=s||u,x=g.useMemo(()=>en({data:m.data??{},dataTypes:p,scope:["P"],rootDisplayName:m.displayName??(h==null?void 0:h.formTitle)??"Transaction",truthyLabel:h==null?void 0:h.truthyLabel,falsyLabel:h==null?void 0:h.falsyLabel}),[p,m.data,m.displayName,h==null?void 0:h.formTitle,h==null?void 0:h.truthyLabel,h==null?void 0:h.falsyLabel]),w=of(m.coverageTerms??[],b??{},h==null?void 0:h.coverageTerms);x.definitions={...x.definitions,...ZZe,...m.coverageTerms&&{coverageTerms:w}},x.properties={...x.properties,default:{title:"Details",default:{},$ref:"#/definitions/Default"},...m.coverageTerms&&{coverageTerms:{title:(h==null?void 0:h.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const S=xi(x),P=S.elements.find(O=>O.scope==="#/properties/default");S.elements=S.elements.filter(O=>O.scope!=="#/properties/default"),P&&S.elements.unshift(P);const A=g.useMemo(()=>Yn(ln,T),[T]),I=O=>{O.preventDefault(),$||C(!0);const j=pf.validate(x,y);if(c&&!j)return;const V=ALe({data:y,timezone:m.defaultTimeZone??"UTC"}),k=wLe({data:y,transactionSnapshot:e,staticLocator:e.segment.element.staticLocator});return t([V,k]),y};return D.jsx(wa.Provider,{value:A,children:D.jsxs("form",{id:f,onSubmit:I,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:pf,uischema:S,cells:yn,renderers:bn,data:y,readonly:T,i18n:{translateError:Hn},schema:x,onChange:({data:O})=>v(O),validationMode:c&&$?"ValidateAndShow":"NoValidation"}),!l&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:T,children:d??"Update"})]})})};vF.displayName="DraftTransactionForm";const WZe=({disbursements:e,accountBalance:t,currency:r,titles:o})=>({title:"",type:"object",definitions:{},required:["amount","type"],properties:{amount:{title:(o==null?void 0:o.amount)||"Amount",type:"number",exclusiveMinimum:0,currency:r,maximum:t},type:{title:(o==null?void 0:o.type)||"Type",oneOf:Object.entries(e).map(([i,s])=>({const:i,title:s.displayName||i}))},transactionMethod:{title:(o==null?void 0:o.transactionMethod)||"Method",oneOf:Rp.options.map(i=>{var s;return{const:i,title:((s=o==null?void 0:o.transactionMethods)==null?void 0:s[i])||gF(i)}})},transactionNumber:{title:(o==null?void 0:o.transactionNumber)||"Transaction Id",type:"string"}}}),mf=new ya({allErrors:!0});sn(mf),va(mf),cn(mf);const qZe=()=>({data:{},default:{}}),$F=({accountLocator:e,accountBalance:t,currency:r,validateOnSubmit:o=!1,hideSubmitButton:i=!1,submitButtonText:s,handleSubmit:l,isSubmitting:c,disabled:u,dataModel:d,id:f,titles:p})=>{const[m,b]=g.useState(!1),h=d.dataTypes,[y,v]=g.useState(qZe()),$=WZe({disbursements:d.disbursements??{},accountBalance:t,currency:r,titles:p}),C=g.useMemo(()=>{var I,O;if(!y.default.type)return{};const A=((O=(I=d.disbursements)==null?void 0:I[y.default.type])==null?void 0:O.data)??{};return en({data:A,dataTypes:h,scope:["P"],rootDisplayName:(p==null?void 0:p.formTitle)||"",truthyLabel:p==null?void 0:p.truthyLabel,falsyLabel:p==null?void 0:p.falsyLabel})},[d,h,p==null?void 0:p.formTitle,p==null?void 0:p.truthyLabel,p==null?void 0:p.falsyLabel,y.default.type]),{schema:T,uiSchema:x}=af({dataModelSchema:C,defaultFieldsSchema:$}),w=u||c,S=g.useMemo(()=>Yn(ln,!0),[]),P=A=>{A.preventDefault(),m||b(!0);const I=mf.validate(T,y);if(o&&!I)return;const O={amount:y.default.amount??0,type:y.default.type??"",useDefaultFinancialInstrument:!1,currency:r,data:{...y.data},sources:[{containerLocator:e,containerType:LD.enum.account}],accountLocator:e,transactionMethod:y.default.transactionMethod,transactionNumber:y.default.transactionNumber};return l(O),y};return D.jsx(wa.Provider,{value:S,children:D.jsxs("form",{id:f,onSubmit:P,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:mf,uischema:x,cells:yn,renderers:bn,data:y,readonly:w,schema:T,onChange:({data:A})=>{A.default.type!==y.default.type?v({...A,data:{}}):v(A)},i18n:{translateError:Hn},validationMode:o&&m?"ValidateAndShow":"NoValidation"}),!i&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:w,children:s??"Update"})]})})};$F.displayName="NewDisbursementForm",mt.AccountForm=uF,mt.DraftTransactionForm=vF,mt.ElementForm=fF,mt.ExistingPaymentForm=mF,mt.InitializedTransactionForm=yF,mt.NewDisbursementForm=$F,mt.NewPaymentForm=hF,mt.PolicyForm=pF,mt.QuoteForm=dF,mt.ReversePaymentForm=bF,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})});
136
+ `)},vGe=0,rc=[];function $Ge(e){var t=F.useRef([]),r=F.useRef([0,0]),o=F.useRef(),i=F.useState(vGe++)[0],s=F.useState(CM)[0],l=F.useRef(e);F.useEffect(function(){l.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=vRe([e.lockRef.current],(e.shards||[]).map(DM),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=F.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var $=Hh(y),C=r.current,T="deltaX"in y?y.deltaX:C[0]-$[0],x="deltaY"in y?y.deltaY:C[1]-$[1],w,S=y.target,P=Math.abs(T)>Math.abs(x)?"h":"v";if("touches"in y&&P==="h"&&S.type==="range")return!1;var A=AM(P,S);if(!A)return!0;if(A?w=P:(w=P==="v"?"h":"v",A=AM(P,S)),!A)return!1;if(!o.current&&"changedTouches"in y&&(T||x)&&(o.current=w),!w)return!0;var I=o.current||w;return hGe(I,v,y,I==="h"?T:x)},[]),u=F.useCallback(function(y){var v=y;if(!(!rc.length||rc[rc.length-1]!==s)){var $="deltaY"in v?_M(v):Hh(v),C=t.current.filter(function(w){return w.name===v.type&&(w.target===v.target||v.target===w.shadowParent)&&bGe(w.delta,$)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var T=(l.current.shards||[]).map(DM).filter(Boolean).filter(function(w){return w.contains(v.target)}),x=T.length>0?c(v,T[0]):!l.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),d=F.useCallback(function(y,v,$,C){var T={name:y,delta:v,target:$,should:C,shadowParent:CGe($)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(x){return x!==T})},1)},[]),f=F.useCallback(function(y){r.current=Hh(y),o.current=void 0},[]),p=F.useCallback(function(y){d(y.type,_M(y),y.target,c(y,e.lockRef.current))},[]),m=F.useCallback(function(y){d(y.type,Hh(y),y.target,c(y,e.lockRef.current))},[]);F.useEffect(function(){return rc.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,tc),document.addEventListener("touchmove",u,tc),document.addEventListener("touchstart",f,tc),function(){rc=rc.filter(function(y){return y!==s}),document.removeEventListener("wheel",u,tc),document.removeEventListener("touchmove",u,tc),document.removeEventListener("touchstart",f,tc)}},[]);var b=e.removeScrollBar,h=e.inert;return F.createElement(F.Fragment,null,h?F.createElement(s,{styles:yGe(i)}):null,b?F.createElement(cGe,{gapMode:e.gapMode}):null)}function CGe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xGe=Y8e($M,$Ge);var SM=F.forwardRef(function(e,t){return F.createElement(qh,mn({},e,{ref:t,sideCar:xGe}))});SM.classNames=qh.classNames;var ZC="Popover",[PM,xqe]=Jo(ZC,[iM]),rf=iM(),[wGe,ii]=PM(ZC),IM=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=rf(t),u=F.useRef(null),[d,f]=F.useState(!1),[p=!1,m]=jl({prop:o,defaultProp:i,onChange:s});return D.jsx(N8e,{...c,children:D.jsx(wGe,{scope:t,contentId:Cg(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:F.useCallback(()=>m(b=>!b),[m]),hasCustomAnchor:d,onCustomAnchorAdd:F.useCallback(()=>f(!0),[]),onCustomAnchorRemove:F.useCallback(()=>f(!1),[]),modal:l,children:r})})};IM.displayName=ZC;var jM="PopoverAnchor",AGe=F.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=ii(jM,r),s=rf(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return F.useEffect(()=>(l(),()=>c()),[l,c]),D.jsx(gM,{...s,...o,ref:t})});AGe.displayName=jM;var kM="PopoverTrigger",NM=F.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=ii(kM,r),s=rf(r),l=$r(t,i.triggerRef),c=D.jsx(Ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":FM(i.open),...o,ref:l,onClick:Gt(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:D.jsx(gM,{asChild:!0,...s,children:c})});NM.displayName=kM;var WC="PopoverPortal",[EGe,TGe]=PM(WC,{forceMount:void 0}),LM=e=>{const{__scopePopover:t,forceMount:r,children:o,container:i}=e,s=ii(WC,t);return D.jsx(EGe,{scope:t,forceMount:r,children:D.jsx(Ed,{present:r||s.open,children:D.jsx(hM,{asChild:!0,container:i,children:o})})})};LM.displayName=WC;var ac="PopoverContent",OM=F.forwardRef((e,t)=>{const r=TGe(ac,e.__scopePopover),{forceMount:o=r.forceMount,...i}=e,s=ii(ac,e.__scopePopover);return D.jsx(Ed,{present:o||s.open,children:s.modal?D.jsx(_Ge,{...i,ref:t}):D.jsx(DGe,{...i,ref:t})})});OM.displayName=ac;var _Ge=F.forwardRef((e,t)=>{const r=ii(ac,e.__scopePopover),o=F.useRef(null),i=$r(t,o),s=F.useRef(!1);return F.useEffect(()=>{const l=o.current;if(l)return V8e(l)},[]),D.jsx(SM,{as:Wi,allowPinchZoom:!0,children:D.jsx(BM,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Gt(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),s.current||(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Gt(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Gt(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),DGe=F.forwardRef((e,t)=>{const r=ii(ac,e.__scopePopover),o=F.useRef(!1),i=F.useRef(!1);return D.jsx(BM,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(o.current||(c=r.triggerRef.current)==null||c.focus(),s.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:s=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((d=r.triggerRef.current)==null?void 0:d.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),BM=F.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=e,m=ii(ac,r),b=rf(r);return y8e(),D.jsx(Q6,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:D.jsx(H6,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:D.jsx(L8e,{"data-state":FM(m.open),role:"dialog",id:m.contentId,...b,...p,ref:t,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)"}})})})}),MM="PopoverClose",SGe=F.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=ii(MM,r);return D.jsx(Ot.button,{type:"button",...o,ref:t,onClick:Gt(e.onClick,()=>i.onOpenChange(!1))})});SGe.displayName=MM;var PGe="PopoverArrow",IGe=F.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=rf(r);return D.jsx(O8e,{...i,...o,ref:t})});IGe.displayName=PGe;function FM(e){return e?"open":"closed"}var jGe=IM,kGe=NM,NGe=LM,RM=OM;const LGe=jGe,OGe=kGe,VM=F.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},i)=>D.jsx(NGe,{children:D.jsx(RM,{ref:i,align:t,sideOffset:r,className:ze("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",e),...o})}));VM.displayName=RM.displayName;const BGe=Sl("",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-semibold tracking-tight",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",caption:"text-sm font-medium leading-none",nav:"text-xs leading-4 text-zinc-400",lead:"text-xl text-muted-foreground",muted:"text-sm text-muted-foreground",body1:"text-base",body2:"text-sm",blockquote:"border-l-2 pl-6 italic",inlineCode:"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold"}},defaultVariants:{variant:"body1"}}),GM=F.forwardRef(({className:e,variant:t,asChild:r=!1,...o},i)=>{const s=r?Wi:"span";return D.jsx(s,{className:ze("max-w-full break-words",BGe({variant:t,className:e})),ref:i,...o})});GM.displayName="Typography";function zM({displayTimeZoneText:e,className:t,...r}){return D.jsx(LGe,{children:D.jsxs(QVe,{className:ze("group flex flex-col gap-1",t),...r,isDateUnavailable:void 0,children:[D.jsxs(PC,{className:"flex flex-1 rounded-md border p-2",children:[D.jsx(OGe,{asChild:!0,children:D.jsx(Nh,{className:vg({size:"xSmall",variant:"ghost"}),children:D.jsx(QOe,{className:ze("size-4",r.isDisabled&&"opacity-50")})})}),D.jsx(HVe,{className:"flex w-full flex-row flex-wrap items-center",children:o=>o.type==="timeZoneName"?D.jsx(GM,{className:"mx-2 flex flex-1 justify-end text-xs opacity-50",children:o.text}):D.jsx(YVe,{segment:o,className:ze("rounded-sm tabular-nums caret-transparent outline-none placeholder-shown:italic",!o.isEditable||r.isDisabled?"opacity-50":"focus:bg-primary focus:text-white")})})]}),D.jsx(VM,{className:"w-fit border-0 p-0",children:D.jsx(UVe,{children:D.jsxs(RVe,{className:"rounded-sm border p-3",children:[D.jsxs("header",{className:"flex flex-row justify-between pb-4",children:[D.jsx(Nh,{slot:"previous",className:vg({size:"xSmall",variant:"ghost"}),children:D.jsx(e9e,{})}),D.jsx(e8e,{className:"font-bold"}),D.jsx(Nh,{slot:"next",className:vg({size:"xSmall",variant:"ghost"}),children:D.jsx(t9e,{})})]}),D.jsxs(VVe,{className:"border-separate border-spacing-1",children:[D.jsx(N6,{children:o=>D.jsx(L6,{className:"text-xs font-semibold",children:o})}),D.jsx(O6,{children:o=>D.jsx(WVe,{date:o,className:ze("flex size-9 cursor-default items-center justify-center rounded-sm outline-none ring-primary/70 ring-offset-2 outside-month:text-secondary hover:bg-zinc-100 focus-visible:ring pressed:bg-zinc-500 selected:bg-primary selected:text-white",r.isDateUnavailable&&r.isDateUnavailable(o)&&"opacity-50")})})]})]})})})]})})}const MGe=(e,t)=>{const r=gn(e);return gh(r,t)};function FGe(e,t="America/New_York"){try{if(e.includes("T"))return b5(e,t);{const r=XRe(e),o=Oa(r);return gh(o,t)}}catch{return null}}const RGe=e=>{const t=ai(),{data:r,id:o,enabled:i,uischema:s,schema:l,path:c,handleChange:u}=e,d=Tt(l,"timezone",t),f=FGe(r,d);return D.jsx(zM,{value:f??null,hourCycle:24,granularity:"day",onChange:p=>{p?u(c,MGe(p.set({hour:0,minute:0,second:0,millisecond:0}),d).toAbsoluteString()):u(c,null)},"aria-label":o,isDisabled:!i,name:o,autoFocus:s.options&&s.options.focus,displayTimeZoneText:d})},VGe=Ye(3,Hv),GGe=Qt(Tr(RGe)),zGe=(e,t)=>{const r=gn(e);return gh(r,t)},ZGe=e=>{const t=ai(),{data:r,id:o,enabled:i,uischema:s,schema:l,path:c,handleChange:u}=e,d=Tt(l,"timezone",t);let f=null;try{f=b5(r,d)}catch{f=null}return D.jsx(zM,{value:f??null,hourCycle:24,granularity:"second",onChange:p=>{p?u(c,zGe(p,d).toAbsoluteString()):u(c,null)},"aria-label":o,isDisabled:!i,name:o,autoFocus:s.options&&s.options.focus,displayTimeZoneText:d})},WGe=Ye(3,Xv),qGe=Qt(Tr(ZGe)),UGe=e=>{const{data:t,className:r,id:o,enabled:i,schema:s,uischema:l,path:c,handleChange:u,options:d,t:f}=e,p=g.useMemo(()=>f("enum.none",p0["enum.none"],{schema:s,uischema:l,path:c}),[f,s,l,c]),m=g.useRef(null);return D.jsx(jd,{isClearable:!0,placeholder:p,ref:m,id:o,instanceId:o,options:d,name:o,value:d==null?void 0:d.find(b=>b.value===t),isDisabled:!i,isMulti:!1,className:ze(r),menuPosition:"fixed",onChange:b=>{u(c,b==null?void 0:b.value)},closeMenuOnSelect:!0})},HGe=Ye(3,bp),XGe=i0(Pn(h0(UGe))),YGe=()=>{const[e,t]=g.useState(!1),r=g.useCallback(()=>t(!0),[]),o=g.useCallback(()=>t(!1),[]);return[e,r,o]};var JGe=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function KGe(e){var t=e.defaultOptions,r=t===void 0?!1:t,o=e.cacheOptions,i=o===void 0?!1:o,s=e.loadOptions;e.options;var l=e.isLoading,c=l===void 0?!1:l,u=e.onInputChange,d=e.filterOption,f=d===void 0?null:d,p=un(e,JGe),m=p.inputValue,b=g.useRef(void 0),h=g.useRef(!1),y=g.useState(Array.isArray(r)?r:void 0),v=Zt(y,2),$=v[0],C=v[1],T=g.useState(typeof m<"u"?m:""),x=Zt(T,2),w=x[0],S=x[1],P=g.useState(r===!0),A=Zt(P,2),I=A[0],O=A[1],j=g.useState(void 0),V=Zt(j,2),k=V[0],Z=V[1],U=g.useState([]),X=Zt(U,2),ee=X[0],te=X[1],de=g.useState(!1),G=Zt(de,2),N=G[0],B=G[1],L=g.useState({}),E=Zt(L,2),_=E[0],M=E[1],z=g.useState(void 0),R=Zt(z,2),W=R[0],Q=R[1],fe=g.useState(void 0),H=Zt(fe,2),je=H[0],ft=H[1];i!==je&&(M({}),ft(i)),r!==W&&(C(Array.isArray(r)?r:void 0),Q(r)),g.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var Et=g.useCallback(function(sr,Ft){if(!s)return Ft();var at=s(sr,Ft);at&&typeof at.then=="function"&&at.then(Ft,function(){return Ft()})},[s]);g.useEffect(function(){r===!0&&Et(w,function(sr){h.current&&(C(sr||[]),O(!!b.current))})},[]);var Cr=g.useCallback(function(sr,Ft){var at=MBe(sr,Ft,u);if(!at){b.current=void 0,S(""),Z(""),te([]),O(!1),B(!1);return}if(i&&_[at])S(at),Z(at),te(_[at]),O(!1),B(!1);else{var Ze=b.current={};S(at),O(!0),B(!k),Et(at,function(lr){h&&Ze===b.current&&(b.current=void 0,O(!1),Z(at),te(lr||[]),B(!1),M(lr?be(be({},_),{},kl({},at,lr)):_))})}},[i,Et,k,_,u]),Nr=N?[]:w&&k?ee:$||[];return be(be({},p),{},{options:Nr,isLoading:I||c,onInputChange:Cr,filterOption:f})}var QGe=g.forwardRef(function(e,t){var r=KGe(e),o=kk(r);return F.createElement(m4,ve({ref:t},o))}),eze=QGe;const tze=g.forwardRef((e,t)=>D.jsx(eze,{ref:t,unstyled:!0,id:e.id,inputId:e.id,components:{DropdownIndicator:JN,ClearIndicator:KN,MultiValueRemove:QN,MultiValueContainer:eL,ValueContainer:rL,MenuList:aL,Option:nL,MultiValueLabel:tL},classNames:{control:({isFocused:r,isDisabled:o})=>ze(["border-input ring-offset-background shadow-xs max-h-36 w-full overflow-y-auto rounded-md border bg-transparent px-3 text-sm",r?"ring-ring ring-1":"",o?"cursor-not-allowed opacity-50":""]),menu:()=>"text-sm mt-2 p-1 relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",option:({isFocused:r,isSelected:o})=>ze("relative flex w-full cursor-default select-none items-center break-words rounded-sm px-4 py-1.5 pr-2 outline-none",r?"bg-accent text-accent-foreground":"",o?"bg-primary text-white":""),multiValueLabel:()=>"dark:text-white",valueContainer:()=>"flex flex-row flex-wrap gap-2 py-2.5"},...e}));tze.displayName="AsyncAutocomplete";const rze=({config:e,id:t,schema:r,visible:o,errors:i,description:s,label:l,required:c,path:u,options:d,data:f,addItem:p,removeItem:m,handleChange:b,enabled:h,...y})=>{const[v,$,C]=YGe(),T=i.length===0,x=vi({},e,y.uischema.options),w=!a0(o,s,v,x.showUnfocusedDescription),S=g.useRef(null);return o?o&&D.jsxs("div",{className:"control root_properties_singleSelect flex flex-col gap-2",children:[D.jsxs("label",{htmlFor:t,className:"break-words text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:[l,c?"*":""]}),D.jsx(jd,{isClearable:!0,ref:S,id:t,instanceId:t,onFocus:$,onBlur:C,options:d,name:"basePayment",value:d==null?void 0:d.filter(P=>f==null?void 0:f.includes(P.value)),isDisabled:!h,isMulti:!0,onChange:P=>{b(u,P.map(A=>A.value))},closeMenuOnSelect:!0}),D.jsx("div",{className:"validation validation_error text-destructive text-sm font-medium",children:T?w?s:null:i})]}):null},aze=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),nze=e=>e.type==="string"&&e.enum!==void 0,oze=Ye(5,it(ot("Control"),it(Er(e=>Ht(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),gp("items",(e,t)=>{const r=e.$ref?Ar(t,e.$ref,t):e;return aze(r)||nze(r)})))),ize=Zce(rze),sze=e=>{const{data:t,id:r,enabled:o,uischema:i,path:s,handleChange:l,schema:c}=e,u=c.multipleOf?-Math.log10(c.multipleOf):void 0;return D.jsx(G6,{id:r,autoFocus:i.options&&i.options.focus,value:t,"aria-labelledby":s,onChange:d=>l(s,d),minValue:c.minimum??void 0,maxValue:c.maximum??void 0,isDisabled:!o,step:c.multipleOf??void 0,formatOptions:{signDisplay:"auto",maximumFractionDigits:u},children:D.jsxs(V6,{className:"relative",children:[D.jsx(z6,{}),D.jsx(Z6,{})]})})},lze=Ye(3,yp),cze=Qt(Tr(sze)),uze=e=>{const{data:t,className:r,id:o,enabled:i,schema:s,uischema:l,path:c,handleChange:u,options:d,t:f}=e,p=g.useMemo(()=>f("enum.none",p0["enum.none"],{schema:s,uischema:l,path:c}),[f,s,l,c]),m=g.useRef(null);return D.jsx(jd,{isClearable:!0,placeholder:p,ref:m,id:o,instanceId:o,options:d,name:"basePayment",value:d==null?void 0:d.find(b=>b.value===t),isDisabled:!i,isMulti:!1,className:r,onChange:b=>{u(c,b==null?void 0:b.value)},closeMenuOnSelect:!0})},dze=Ye(3,w_),fze=Gce(Pn(uze)),ZM=F.forwardRef(({className:e,type:t,...r},o)=>D.jsx("input",{type:t,className:ze("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...r}));ZM.displayName="Input";const pze=e=>{const{config:t,data:r,className:o,id:i,enabled:s,uischema:l,schema:c,path:u,handleChange:d}=e,f=c.maxLength,p=vi({},t,l.options);return D.jsx(ZM,{type:p.format==="password"?"password":"text",value:r||"",onChange:m=>d(u,m.target.value===""?void 0:m.target.value),className:o,id:i,disabled:!s,autoFocus:p.focus,placeholder:p.placeholder,maxLength:p.restrict?f:void 0,size:p.trim?f:void 0})},mze=Ye(2,vp),gze=Qt(Tr(pze));var qC="Collapsible",[hze,WM]=Jo(qC),[bze,UC]=hze(qC),qM=F.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:s,onOpenChange:l,...c}=e,[u=!1,d]=jl({prop:o,defaultProp:i,onChange:l});return D.jsx(bze,{scope:r,disabled:s,contentId:Cg(),open:u,onOpenToggle:F.useCallback(()=>d(f=>!f),[d]),children:D.jsx(Ot.div,{"data-state":XC(u),"data-disabled":s?"":void 0,...c,ref:t})})});qM.displayName=qC;var UM="CollapsibleTrigger",HM=F.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,i=UC(UM,r);return D.jsx(Ot.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":XC(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:t,onClick:Gt(e.onClick,i.onOpenToggle)})});HM.displayName=UM;var HC="CollapsibleContent",XM=F.forwardRef((e,t)=>{const{forceMount:r,...o}=e,i=UC(HC,e.__scopeCollapsible);return D.jsx(Ed,{present:r||i.open,children:({present:s})=>D.jsx(yze,{...o,ref:t,present:s})})});XM.displayName=HC;var yze=F.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:i,...s}=e,l=UC(HC,r),[c,u]=F.useState(o),d=F.useRef(null),f=$r(t,d),p=F.useRef(0),m=p.current,b=F.useRef(0),h=b.current,y=l.open||c,v=F.useRef(y),$=F.useRef(void 0);return F.useEffect(()=>{const C=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(C)},[]),Ko(()=>{const C=d.current;if(C){$.current=$.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const T=C.getBoundingClientRect();p.current=T.height,b.current=T.width,v.current||(C.style.transitionDuration=$.current.transitionDuration,C.style.animationName=$.current.animationName),u(o)}},[l.open,o]),D.jsx(Ot.div,{"data-state":XC(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!y,...s,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:y&&i})});function XC(e){return e?"open":"closed"}var vze=qM,$ze=HM,Cze=XM,lo="Accordion",xze=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[YC,wze,Aze]=ok(lo),[Xh,wqe]=Jo(lo,[Aze,WM]),JC=WM(),YM=g.forwardRef((e,t)=>{const{type:r,...o}=e,i=o,s=o;return D.jsx(YC.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?D.jsx(Dze,{...s,ref:t}):D.jsx(_ze,{...i,ref:t})})});YM.displayName=lo;var[JM,Eze]=Xh(lo),[KM,Tze]=Xh(lo,{collapsible:!1}),_ze=g.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},collapsible:s=!1,...l}=e,[c,u]=jl({prop:r,defaultProp:o,onChange:i});return D.jsx(JM,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:u,onItemClose:g.useCallback(()=>s&&u(""),[s,u]),children:D.jsx(KM,{scope:e.__scopeAccordion,collapsible:s,children:D.jsx(QM,{...l,ref:t})})})}),Dze=g.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},...s}=e,[l=[],c]=jl({prop:r,defaultProp:o,onChange:i}),u=g.useCallback(f=>c((p=[])=>[...p,f]),[c]),d=g.useCallback(f=>c((p=[])=>p.filter(m=>m!==f)),[c]);return D.jsx(JM,{scope:e.__scopeAccordion,value:l,onItemOpen:u,onItemClose:d,children:D.jsx(KM,{scope:e.__scopeAccordion,collapsible:!0,children:D.jsx(QM,{...s,ref:t})})})}),[Sze,Yh]=Xh(lo),QM=g.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:o,dir:i,orientation:s="vertical",...l}=e,c=g.useRef(null),u=$r(c,t),d=wze(r),p=L$(i)==="ltr",m=Gt(e.onKeyDown,b=>{var A;if(!xze.includes(b.key))return;const h=b.target,y=d().filter(I=>{var O;return!((O=I.ref.current)!=null&&O.disabled)}),v=y.findIndex(I=>I.ref.current===h),$=y.length;if(v===-1)return;b.preventDefault();let C=v;const T=0,x=$-1,w=()=>{C=v+1,C>x&&(C=T)},S=()=>{C=v-1,C<T&&(C=x)};switch(b.key){case"Home":C=T;break;case"End":C=x;break;case"ArrowRight":s==="horizontal"&&(p?w():S());break;case"ArrowDown":s==="vertical"&&w();break;case"ArrowLeft":s==="horizontal"&&(p?S():w());break;case"ArrowUp":s==="vertical"&&S();break}const P=C%$;(A=y[P].ref.current)==null||A.focus()});return D.jsx(Sze,{scope:r,disabled:o,direction:i,orientation:s,children:D.jsx(YC.Slot,{scope:r,children:D.jsx(Ot.div,{...l,"data-orientation":s,ref:u,onKeyDown:o?void 0:m})})})}),Jh="AccordionItem",[Pze,KC]=Xh(Jh),eF=g.forwardRef((e,t)=>{const{__scopeAccordion:r,value:o,...i}=e,s=Yh(Jh,r),l=Eze(Jh,r),c=JC(r),u=Cg(),d=o&&l.value.includes(o)||!1,f=s.disabled||e.disabled;return D.jsx(Pze,{scope:r,open:d,disabled:f,triggerId:u,children:D.jsx(vze,{"data-orientation":s.orientation,"data-state":iF(d),...c,...i,ref:t,disabled:f,open:d,onOpenChange:p=>{p?l.onItemOpen(o):l.onItemClose(o)}})})});eF.displayName=Jh;var tF="AccordionHeader",rF=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,i=Yh(lo,r),s=KC(tF,r);return D.jsx(Ot.h3,{"data-orientation":i.orientation,"data-state":iF(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});rF.displayName=tF;var QC="AccordionTrigger",aF=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,i=Yh(lo,r),s=KC(QC,r),l=Tze(QC,r),c=JC(r);return D.jsx(YC.ItemSlot,{scope:r,children:D.jsx($ze,{"aria-disabled":s.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...c,...o,ref:t})})});aF.displayName=QC;var nF="AccordionContent",oF=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,i=Yh(lo,r),s=KC(nF,r),l=JC(r);return D.jsx(Cze,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...l,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});oF.displayName=nF;function iF(e){return e?"open":"closed"}var Ize=YM,jze=eF,kze=rF,sF=aF,lF=oF;const cF=Ize,ex=F.forwardRef(({className:e,...t},r)=>D.jsx(jze,{ref:r,className:ze("border-b",e),...t}));ex.displayName="AccordionItem";const tx=F.forwardRef(({className:e,children:t,...r},o)=>D.jsx(kze,{className:"flex",children:D.jsxs(sF,{ref:o,className:ze("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,D.jsx(R$,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));tx.displayName=sF.displayName;const rx=F.forwardRef(({className:e,children:t,...r},o)=>D.jsx(lF,{ref:o,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:D.jsx("div",{className:ze("pb-4 pt-0",e),children:t})}));rx.displayName=lF.displayName;const ax=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("rounded-lg border bg-card text-card-foreground shadow-xs",e),...t}));ax.displayName="Card";const Nze=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("flex flex-col space-y-1.5 p-6",e),...t}));Nze.displayName="CardHeader";const Lze=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("text-2xl font-semibold leading-none tracking-tight",e),...t}));Lze.displayName="CardTitle";const Oze=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("text-sm text-muted-foreground",e),...t}));Oze.displayName="CardDescription";const nx=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("p-6 pt-0",e),...t}));nx.displayName="CardContent";const Bze=F.forwardRef(({className:e,...t},r)=>D.jsx("div",{ref:r,className:ze("flex items-center p-6 pt-0",e),...t}));Bze.displayName="CardFooter";const{convertToValidClassName:Mze}=ho,Fze=({classNames:e,data:t,label:r,path:o,schema:i,errors:s,addItem:l,removeItems:c,uischema:u,uischemas:d,getStyleAsClassName:f,renderers:p,rootSchema:m,translations:b,enabled:h})=>{var V,k;const y=u,v=g.useMemo(()=>Qv(d??[],i,u.scope,o,void 0,u,m),[d,i,o,u,m]),$=s.length===0,T=[f?f("array.control.validation"):""].concat($?"":f?f("array.control.validation.error"):"").join(" "),x=f?f("array.control.add"):"",w=f?f("array.control.label"):"",S=f?f("array.child.controls"):"",P=f?f("array.child.controls.delete"):"",A=[f?f("array.control"):"",Mze(y.scope)].join(" "),I=()=>{l&&l(o,jc(i,m))()},O=Z=>{c&&c(o,[Z])()},j=((k=(V=m.properties)==null?void 0:V[o])==null?void 0:k.title)??r;return D.jsxs("div",{className:A,children:[D.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[D.jsx("span",{className:ze("text-lg font-bold",w),children:j}),D.jsx("div",{className:ze("text-destructive",T),children:s})]}),D.jsxs(cF,{type:"multiple",className:ze("space-y-4 pb-4",e==null?void 0:e.children),children:[(t==null?void 0:t.length)>0?Bb(0,t.length).map(Z=>{const U=cp(o,`${Z}`);return D.jsxs(ex,{value:`item-${Z}`,className:"rounded-lg border",children:[D.jsxs("div",{className:"flex flex-row gap-0 [&>h3]:flex-grow",children:[D.jsx(tx,{className:"hover:bg-muted/50 flex items-center justify-between gap-2 rounded-xl px-4 py-2 transition-colors",children:D.jsx("div",{className:ze("flex items-center space-x-2",S),children:D.jsxs("span",{className:w,children:[j," ",Z+1]})})}),D.jsxs(nr,{type:"button",variant:"ghost",size:"icon",className:P,onClick:()=>{O(Z)},disabled:!h,children:[D.jsx(_k,{className:"h-4 w-4"}),D.jsx("span",{className:"sr-only",children:b.removeAriaLabel})]})]}),D.jsx(rx,{className:"p-4",children:D.jsx(Ai,{schema:i,uischema:v||u,path:U,renderers:p},U)})]},Z)}):D.jsx(ax,{className:"border-2 border-dashed",children:D.jsx(nx,{className:"flex flex-col items-center justify-center p-8 text-center",children:D.jsxs(nr,{type:"button",disabled:!h,onClick:I,variant:"outline",children:[D.jsx(Ag,{className:"mr-2 h-4 w-4"}),b.addTooltip]})})}),(t==null?void 0:t.length)>0&&D.jsxs(nr,{onClick:I,type:"button",className:x,disabled:!h,variant:"outline",children:[D.jsx(Ag,{className:"mr-2 h-4 w-4"}),b.addTooltip]})]})]})},Rze=({schema:e,uischema:t,data:r,path:o,rootSchema:i,uischemas:s,addItem:l,getStyle:c,getStyleAsClassName:u,removeItems:d,moveUp:f,moveDown:p,id:m,visible:b,enabled:h,errors:y,translations:v})=>{const $=t,C=ho.createLabelDescriptionFrom($,e),T=C.show?C.text:"",x=`control ${ho.convertToValidClassName($.scope)}`,w=u?u("array.layout"):"",S=u?u("array.button"):"",P=u?u("array.children"):"",A={wrapper:x,fieldSet:w,button:S,children:P};return b?D.jsx(Fze,{classNames:A,data:r,label:T??"",path:o,schema:e,errors:y,arraySchema:e,addItem:l,removeItems:d,moveUp:f,moveDown:p,uischema:t,uischemas:s,getStyleAsClassName:u,rootSchema:i,id:m,visible:b,enabled:h,getStyle:c,translations:v}):null},Vze=Ye(5,Ls(Yv,Jv)),Gze=Mr(wp(Pn(Ap(Rze)))),zze=({renderers:e,cells:t,uischemas:r,schema:o,label:i,path:s,visible:l,enabled:c,uischema:u,rootSchema:d})=>{const f=g.useMemo(()=>Qv(r,o,u.scope,s,()=>Ae(s)?Ps.uiSchema(o,"VerticalLayout",void 0,d):{...Ps.uiSchema(o,"Group",void 0,d),label:i},u,d),[r,o,s,i,u,d]);return l?D.jsx(Ai,{visible:l,enabled:c,schema:o,uischema:f,path:s,renderers:e,cells:t}):null},Zze=Ye(2,x_),Wze=Fce(zze),{convertToValidClassName:qze}=ho,{isPrimitiveArrayControl:Uze,rankWith:Hze}=j_;class Xze extends g.Component{constructor(){super(...arguments);CF(this,"confirmDelete",(r,o)=>{const i=r.substring(0,r.lastIndexOf("."));this.props.removeItems&&this.props.removeItems(i,[o])()})}render(){const{addItem:r,uischema:o,schema:i,rootSchema:s,path:l,data:c,visible:u,errors:d,label:f,getStyleAsClassName:p,childErrors:m,translations:b,enabled:h}=this.props,y=o,v=(p==null?void 0:p("array.table.table"))||"",$=(p==null?void 0:p("array.table.label"))||"",C=(p==null?void 0:p("array.table.button"))||"",T=(p==null?void 0:p("array.table.validation"))||"",x=[(p==null?void 0:p("array.table"))||"",qze(y.scope)].join(" "),w=A=>({type:"Control",label:!1,scope:i.type==="object"?`#/properties/${A}`:"#"}),S=d.length===0,P=[T].concat(S?"":(p==null?void 0:p("array.table.validation.error"))||"").join(" ");return D.jsxs("div",{className:x,hidden:!u,children:[c&&c.length?D.jsxs("table",{className:v,children:[D.jsx("thead",{children:D.jsx("tr",{children:i.properties?_p(Dp,Ep(A=>i.properties?i.properties[A].type!=="array":!1),Tp(A=>D.jsx("th",{children:i.properties&&(i.properties[A].title??nD(A))},A)))(i.properties):D.jsx("th",{className:$,children:f})})}),D.jsxs("tbody",{children:[!c||!Array.isArray(c)||c.length===0?D.jsx("tr",{children:D.jsx("td",{children:b.noDataMessage})}):c.map((A,I)=>{const O=Ss.compose(l,`${I}`),j=xc(m,U=>Pc(U).startsWith(O)),V=(p==null?void 0:p("array.validation"))||"",k=(p==null?void 0:p("array.validation.error"))||"",Z=j?[V].concat(k).join(" "):V;return D.jsxs("tr",{children:[i.properties?_p(Dp,Ep(U=>i.properties?i.properties[U].type!=="array":!1),Tp(U=>{const X=Ss.compose(O,U.toString());return D.jsx("td",{children:D.jsx(Oc,{schema:Ca.schema(i,`#/properties/${_c(U)}`,s),uischema:w(_c(U)),path:O+"."+U})},X)}))(i.properties):D.jsxs("td",{children:[D.jsx(Oc,{schema:i,uischema:w(),path:O}),j&&D.jsx("span",{className:ze("text-destructive text-xs",Z),children:s0(j.map(U=>U.message),", ")})]},Ss.compose(O,I.toString())),D.jsx("td",{children:D.jsxs(nr,{type:"button",variant:"ghost",size:"icon",onClick:()=>{this.confirmDelete(O,I)},disabled:!h,children:[D.jsx(_k,{className:"h-4 w-4"}),D.jsx("span",{className:"sr-only",children:b.removeTooltip})]})})]},O)}),D.jsx("tr",{children:D.jsx("td",{children:D.jsxs(nr,{type:"button",variant:"outline",className:C,disabled:!h,onClick:r(l,jc(i,s)),children:[D.jsx(Ag,{className:"mr-2 h-4 w-4"}),b.addTooltip]})})})]})]}):D.jsx(ax,{className:"border-2 border-dashed",children:D.jsx(nx,{className:"flex flex-col items-center justify-center p-8 text-center",children:D.jsxs(nr,{type:"button",variant:"outline",disabled:!h,onClick:r(l,jc(i,s)),children:[D.jsx(Ag,{className:"mr-2 h-4 w-4"}),b.addTooltip]})})}),D.jsx("div",{className:P,children:S?"":d})]})}}const Yze=Mr(wp(Pn(Ap(Xze)))),Jze=Hze(4,Uze),Kze=({className:e,children:t,visible:r})=>D.jsx("div",{className:e,hidden:r==null?!1:!r,children:t}),Qze=(e,t,r,o,i)=>{const{renderers:s,cells:l}=Bs();return Ae(e.elements)?[]:e.elements.map((c,u)=>D.jsx("div",{className:r,children:D.jsx(Ai,{renderers:s,cells:l,uischema:c,schema:t,path:o,enabled:i})},`${o}-${u}`))},eZe=Ye(1,ot("CollapsingVerticalLayout")),tZe=e=>{const{data:t,...r}=e;return D.jsx(rZe,{...r})},rZe=g.memo(function({schema:t,uischema:r,path:o,visible:i,enabled:s,getStyle:l,getStyleAsClassName:c}){const u=r,d=u.elements?u.elements.length:0,f=c&&c("vertical.layout"),p=["vertical-layout-item"].concat(l?l("vertical.layout.item",d):[]).join(" ");return D.jsx("fieldset",{className:"group-layout pb-4",children:D.jsx(cF,{type:"single",collapsible:!0,children:D.jsxs(ex,{value:"item-1",className:"[&>div]:data-[state=open]:overflow-visible",children:[D.jsx(tx,{className:"text-muted-foreground text-sm font-normal",children:r.label}),D.jsx(rx,{className:"p-1",children:D.jsx(Kze,{className:f,uischema:r,schema:t,visible:i,enabled:s,path:o,getStyle:l,getStyleAsClassName:c,children:Qze(u,t,p,o,s)})})]})})})}),aZe=Mr(Lc(tZe,!1)),bn=[...kde,{tester:Zze,renderer:Wze},{tester:eZe,renderer:aZe},{tester:Vze,renderer:Gze},{tester:Jze,renderer:Yze},{tester:oze,renderer:ize}],yn=[...Nde,{tester:HGe,cell:XGe},{tester:o9e,cell:i9e},{tester:l8e,cell:c8e},{tester:oFe,cell:iFe},{tester:VGe,cell:GGe},{tester:WGe,cell:qGe},{tester:dze,cell:fze},{tester:lze,cell:cze},{tester:mze,cell:gze}],af=({dataModelSchema:e,defaultFieldsSchema:t={},advancedFieldsSchema:r,coverageTermFieldsSchema:o={},advancedUISchemaLayout:i="CollapsingVerticalLayout",advancedUISchemaLabel:s="See Advanced Details",coverageTermsUISchemaLabel:l="Coverage Terms"})=>{const c=g.useMemo(()=>{const d={type:"object",definitions:{...(t==null?void 0:t.definitions)??{},...e.definitions,...(r==null?void 0:r.definitions)??{},...(o==null?void 0:o.definitions)??{}},properties:{default:{},data:{type:e.type,properties:e.properties,required:e.required,title:""},coverageTerms:{},advanced:{}}};return t&&(d.properties.default={title:"",type:t.type,properties:t.properties,required:t.required}),r&&(d.properties.advanced={title:"",type:r.type,properties:r.properties,required:r.required}),o&&(d.properties.coverageTerms={title:"",type:o.type,properties:o.properties,required:o.required}),d},[e,t,r,o]),u=g.useMemo(()=>{const d=xi(c);if(d.elements=d.elements.filter(f=>f.scope!=="#/properties/coverageTerms"&&f.scope!=="#/properties/advanced"),r){const f=xi(r,i,"#/properties/advanced");f&&(f.label=s,d.elements.push(f))}if(o&&Object.keys(o.properties||{}).length>0){const f=xi(o,"Group","#/properties/coverageTerms");f.label=l,d.elements.push(f)}return d},[r,c,i,s,o,l]);return{schema:c,uiSchema:u}},nZe=(e,t,r)=>{const o=["-"],i=e.documents??{},s=[];Object.keys(i).forEach(x=>{i[x].scope==="invoice"&&s.push(x)});const l=s.length?s:["-"],c=Object.keys(e.autoRenewalPlans??{}),u=c.length?c:["-"],d=Object.keys(e.delinquencyPlans??{}),f=d.length?d:o,p=[],m=o,b=Object.keys(e.shortfallTolerancePlans??{}),h=b.length?b:o,y=Object.keys(e.installmentPlans??{}),v=y.length?y:o,$={autoRenewalPlanName:{type:"string",title:(r==null?void 0:r.autoRenewalPlanName)??"Auto Renewal Plan Name",enum:u,readOnly:c.length===0},delinquencyPlanName:{type:"string",title:(r==null?void 0:r.delinquencyPlanName)??"Delinquency Plan Name",enum:f,readOnly:d.length===0},excessCreditPlanName:{type:"string",title:(r==null?void 0:r.excessCreditPlanName)??"Excess Credit Plan Name",enum:m,readOnly:p.length===0},shortfallTolerancePlanName:{type:"string",title:(r==null?void 0:r.shortfallTolerancePlanName)??"Shortfall Tolerance Plan Name",enum:h,readOnly:b.length===0},billingLevel:{type:"string",title:(r==null?void 0:r.billingLevel)??"Billing Level",enum:qa.options},invoiceDocument:{type:"string",title:(r==null?void 0:r.invoiceDocument)??"Invoice Document",enum:l,readOnly:s.length===0},installmentPlanName:{type:"string",title:(r==null?void 0:r.installmentPlanName)??"Installment Plan",enum:v,readOnly:y.length===0}},C=[];return Object.keys($).forEach(x=>{var w,S;x==="installmentPlanName"&&((S=(w=t.preferences)==null?void 0:w.installmentPreferences)!=null&&S.installmentPlanName)?C.push("installmentPlanName"):t[x]&&C.push(x)}),{title:"",type:"object",definitions:{},required:C,properties:$}},nf=new ya({allErrors:!0});sn(nf),va(nf),cn(nf);const uF=({dataModel:e,accountType:t,disabled:r,handleSubmit:o,isSubmitting:i,preventFormResetOnDisabled:s=!0,hideSubmitButton:l=!1,hideAdvancedFields:c=!1,validateOnSubmit:u=!1,account:d,submitButtonText:f,id:p,titles:m={}})=>{const b=e.accounts??{},h=e.dataTypes??{},y=g.useMemo(()=>({billingLevel:qa.enum.policy,autoRenewalPlanName:e.defaultAutoRenewalPlan,delinquencyPlanName:e.defaultDelinquencyPlan,shortfallTolerancePlanName:e.defaultShortfallTolerancePlan,invoiceDocument:e.defaultInvoiceDocument,preferences:{installmentPreferences:{installmentPlanName:e.defaultInstallmentPlan}},autoValidate:!0,data:{}}),[e.defaultAutoRenewalPlan,e.defaultDelinquencyPlan,e.defaultShortfallTolerancePlan,e.defaultInvoiceDocument,e.defaultInstallmentPlan]),v=g.useMemo(()=>c?void 0:nZe(e,y,m),[e,y,c,m]),[$,C]=g.useState(!1),[T,x]=g.useState(d),[w,S]=g.useState(T$({accountType:t,account:d,defaultValues:y}));g.useEffect(()=>{if(!yi(d,T)){x(d);const j=T$({accountType:t,account:d,defaultValues:y});S(j)}},[d,t,y,T]),g.useEffect(()=>{r&&!s&&S(T$({accountType:t,account:d,defaultValues:y}))},[r,d,s,t,y]);const P=en({data:b[t].data??{},dataTypes:h,scope:["Q","P"],rootDisplayName:b[t].displayName??t,account:d,truthyLabel:m==null?void 0:m.truthyLabel,falsyLabel:m==null?void 0:m.falsyLabel}),{schema:A,uiSchema:I}=af({dataModelSchema:P,advancedFieldsSchema:v,advancedUISchemaLabel:m==null?void 0:m.seeAdvancedDetails}),O=j=>{j.preventDefault(),$||C(!0);const V=nf.validate(A,w);if(!(u&&!V))if(d){const k=Rj({type:t,autoValidate:!w.saveAsDraft,data:w.data,advanced:w.advanced,account:d});o(k)}else{const k=Rj({type:t,autoValidate:!w.saveAsDraft,data:w.data,advanced:w.advanced});o(k)}};return D.jsx(wa.Provider,{value:ln,children:D.jsxs("form",{onSubmit:O,id:p,className:"@container flex w-full border-spacing-0 flex-col gap-2",children:[D.jsx(za,{ajv:nf,cells:yn,renderers:bn,data:w,readonly:r||i,onChange:({data:j})=>S(j),schema:A,i18n:{translateError:Hn},validationMode:u&&$?"ValidateAndShow":"NoValidation",uischema:I}),!l&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:r||i,children:f??"Update"})]})})};uF.displayName="AccountForm";var oZe=Hy;function iZe(e){return oZe(e)?void 0:e}var sZe=iZe,lZe=ps,cZe=np,uZe=ZT,dZe=gs,fZe=Ds,pZe=sZe,mZe=ip,gZe=OE,hZe=1,bZe=2,yZe=4,vZe=mZe(function(e,t){var r={};if(e==null)return r;var o=!1;t=lZe(t,function(s){return s=dZe(s,e),o||(o=s.length>1),s}),fZe(e,gZe(e),r),o&&(r=cZe(r,hZe|bZe|yZe,pZe));for(var i=t.length;i--;)uZe(r,t[i]);return r}),$Ze=vZe;const ox=We($Ze);var CZe=Pf,xZe=FT,wZe=gs;function AZe(e,t,r){for(var o=-1,i=t.length,s={};++o<i;){var l=t[o],c=CZe(e,l);r(c,l)&&xZe(s,wZe(l,e),c)}return s}var EZe=AZe,TZe=EZe,_Ze=fw;function DZe(e,t){return TZe(e,t,function(r,o){return _Ze(e,o)})}var SZe=DZe,PZe=SZe,IZe=ip,jZe=IZe(function(e,t){return e==null?{}:PZe(e,t)}),kZe=jZe;const NZe=We(kZe),of=(e,t,r)=>{const o={title:r??"Coverage Terms",type:"object",definitions:{},required:[],properties:{}},i=e.filter(u=>{var f;const{name:d}=Sm(u);return(f=t==null?void 0:t[d])==null?void 0:f.options}),s=e.filter(u=>{var f;const{name:d}=Sm(u);return(f=t==null?void 0:t[d])==null?void 0:f.value});i.forEach(u=>{const{name:d,quantifier:f}=Sm(u),p=f==="";if(!t||!t[d])return;const m=t[d],b=m.options??[],h={oneOf:Object.entries(b).map(([y,v])=>{const $=y.startsWith("*")?y.substring(1):y;return{const:$,title:v.displayName||$}}),title:m.displayName};o.properties&&!o.properties[d]&&(o.properties[d]=h),o.required&&p&&!o.required.includes(d)&&o.required.push(d)});const l={};s.forEach(u=>{const{name:d}=Sm(u),f=t==null?void 0:t[d];if(!f)return;const p=f.value;p&&(l[d]={...p})});const c=en({data:l,scope:["Q","P"]});return o.properties={...o.properties,...c.properties},o},LZe=(e,t,r)=>{const o=["-"],i=Object.keys(e.delinquencyPlans??{}),s=i.length?i:o,l=Object.keys(e.autoRenewalPlans),c=l.length?l:o;return{Advanced:{title:"",type:"object",definitions:{},required:[],properties:{billingLevel:{type:"string",enum:["account","inherit","policy"],title:(r==null?void 0:r.billingLevel)??"Billing Level"},billingTrigger:{type:"string",enum:["accept","issue"],title:(r==null?void 0:r.billingTrigger)??"Billing Trigger"},durationBasis:{type:"string",enum:["years","months","weeks","days","hours"],title:(r==null?void 0:r.durationBasis)??"Duration Basis",readOnly:t},delinquencyPlanName:{type:"string",title:(r==null?void 0:r.delinquencyPlanName)??"Delinquency Plan",enum:s,readOnly:i.length===0},autoRenewalPlanName:{type:"string",title:(r==null?void 0:r.autoRenewalPlanName)??"Auto Renewal Plan",enum:c,readOnly:l.length===0}}}}},OZe=(e,t,r)=>{const o=["-"],i=Object.keys(e.installmentPlans??{}),s=i.length?i:o;return{Default:{title:"",type:"object",definitions:{},required:[],properties:{startTime:{title:(r==null?void 0:r.startTime)??"Effective Date",type:"string",format:"date-time",timezone:t},endTime:{title:(r==null?void 0:r.endTime)??"Expiration Date",type:"string",format:"date-time",timezone:t},expirationTime:{title:(r==null?void 0:r.expirationTime)??"Quote Valid until",type:"string",format:"date-time",timezone:t},installmentPlanName:{type:"string",title:(r==null?void 0:r.installmentPlanName)??"Installment Plan",enum:s,readOnly:i.length===0},currency:{type:"string",enum:zs.options,title:(r==null?void 0:r.currency)??"Currency"},timezone:{type:"string",enum:_D.options,title:(r==null?void 0:r.timezone)??"Timezone"}}}}},sf=new ya({allErrors:!0});sn(sf),va(sf),cn(sf);const dF=({quote:e,dataModel:t,dataTypes:r,disabled:o,handleSubmit:i,isSubmitting:s,preventFormResetOnDisabled:l=!0,validateOnSubmit:c=!1,hideSubmitButton:u=!1,hideDefaultFields:d=!1,hideAdvancedFields:f=!1,hideCoverageTerms:p=!1,submitButtonText:m,id:b,titles:h,getEvaluatedConstraints:y,dependencyMap:v,hideAllFields:$=!1,hiddenExceptions:C=[]})=>{var M;const T=ai(),[x,w]=g.useState(void 0),S=v&&y,[P,A]=g.useState(e),I=g.useMemo(()=>Tt(t.products,e.productName,void 0),[t,e.productName]),[O,j]=g.useState(l$(e,I??{},t)),[V,k]=g.useState(!1),Z=Tt(e,"timezone",T),U=g.useMemo(()=>S?E$({data:O,locator:e.locator,dependencyMap:v}):{},[S,O,v,e.locator]);g.useEffect(()=>{(async()=>{var R;if(U[e.locator]&&Object.keys(U[e.locator]).length>0&&y&&!x){const W=await y(U,((R=e.element)==null?void 0:R.locator)??"",e.locator);w(W)}})()},[e.locator,(M=e.element)==null?void 0:M.locator,x,U,y]),g.useEffect(()=>{yi(e,P)||(A(e),j(l$(e,I??{},t)))},[t,P,I,e]),g.useEffect(()=>{o&&!l&&j(l$(e,I??{},t))},[o,e,l,I,t]);let X=g.useMemo(()=>(I==null?void 0:I.data)??{},[I==null?void 0:I.data]);$&&C.length>0&&(X=NZe(X,C));const ee=g.useMemo(()=>en({data:X,dataTypes:r,scope:["Q","P"],evaluatedConstraints:x,rootDisplayName:(I==null?void 0:I.displayName)??e.type??"Quote",quote:e,truthyLabel:h==null?void 0:h.truthyLabel,falsyLabel:h==null?void 0:h.falsyLabel,hiddenExceptions:C,timezone:Z}),[X,I==null?void 0:I.displayName,r,v,x,e,h,C,Z]),te=of(I!=null&&I.coverageTerms?I.coverageTerms:[],t.coverageTerms??{},h==null?void 0:h.coverageTerms);ee.definitions={...ee.definitions,...d||$?{}:OZe(t,e.timezone??(I==null?void 0:I.defaultTimeZone)??T,h),...f||$?{}:LZe(t,!0,h),...(I==null?void 0:I.coverageTerms)&&!p&&{coverageTerms:te}},ee.properties={...$&&C.length===0?{}:ee.properties,...d||$?{}:{default:{title:(h==null?void 0:h.details)??"Details",default:{},$ref:"#/definitions/Default"}},...f||$?{}:{advanced:{title:(h==null?void 0:h.seeAdvancedDetails)??"See Advanced Details",default:{},$ref:"#/definitions/Advanced"}},...(I==null?void 0:I.coverageTerms)&&!p&&!$&&{coverageTerms:{title:(h==null?void 0:h.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const de=z=>{z.preventDefault(),V||k(!0);const R=sf.validate(ee,O);if(c&&!R)return;let W=ox(O,["coverageTerms","default","advanced"]);S&&(W=_$(W,x,e.locator));const Q=_Le({data:W,coverageTerms:O.coverageTerms,advanced:O.advanced,default:O.default,quote:e});return i(Q),O},G=Ad(ee),N=G.elements.find(z=>z.scope==="#/properties/default"),B=G.elements.find(z=>z.scope==="#/properties/advanced"),L=G.elements.find(z=>z.scope==="#/properties/coverageTerms");if(G.elements=G.elements.filter(z=>z.scope!=="#/properties/default"&&z.scope!=="#/properties/advanced"&&z.scope!=="#/properties/coverageTerms"),B){const z={type:"CollapsingVerticalLayout",label:(h==null?void 0:h.seeAdvancedDetails)??"See Advanced Details",elements:[B]};G.elements.unshift(z)}N&&G.elements.unshift(N),Array.isArray(I==null?void 0:I.coverageTerms)&&(I==null?void 0:I.coverageTerms.length)>0&&L&&G.elements.push(L);const E=o||s,_=g.useMemo(()=>Yn(ln,E),[E]);return D.jsx(wa.Provider,{value:_,children:D.jsxs("form",{onSubmit:de,id:b,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:sf,uischema:G,cells:yn,renderers:bn,data:O,readonly:E,i18n:{translateError:Hn},schema:ee,onChange:({data:z})=>{j(z),w(void 0)},validationMode:c&&V?"ValidateAndShow":"NoValidation"}),!u&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:E,children:m??"Update"})]})})};dF.displayName="QuoteForm";const lf=new ya({allErrors:!0});sn(lf),va(lf),cn(lf);const fF=({elementModel:e,dataTypes:t,disabled:r,handleSubmit:o,dataModel:i,timezone:s,coverageTerms:l,isSubmitting:c,preventFormResetOnDisabled:u=!0,hideSubmitButton:d=!1,element:f,validateOnSubmit:p=!1,hideAllFields:m=!1,hideCoverageTerms:b=!1,submitButtonText:h,id:y,titles:v,getEvaluatedConstraints:$,dependencyMap:C,quote:T})=>{const[x,w]=g.useState(f),[S,P]=g.useState(l),[A,I]=g.useState(!1),[O,j]=g.useState(void 0),[V,k]=g.useState(dP(f,e.coverageTerms??[],l));g.useEffect(()=>{(!yi(f,x)||!yi(l,S))&&(w(f),P(l),k(dP(f,e.coverageTerms??[],l)))},[f,l,x,S,e.coverageTerms]);const Z=C&&!!$,U=g.useMemo(()=>Z?E$({data:V,locator:x.locator,dependencyMap:C}):{},[Z,V,C,x.locator]);g.useEffect(()=>{(async()=>{if(U[x.locator]&&Object.keys(U[x.locator]).length>0&&$&&!O){const E=await $(U,x.tenantLocator??"",x.locator);j(E)}})()},[x.locator,x.tenantLocator,O,U,$]),g.useEffect(()=>{r&&!u&&k(f?{...f.data,coverageTerms:f.coverageTerms}:{})},[r,f,u]);const X=g.useMemo(()=>en({data:e.data??{},dataTypes:t,scope:["P","Q"],quote:T,ignoreConstraints:!Z,evaluatedConstraints:O,rootDisplayName:e.displayName??f.type??"Element",element:f,truthyLabel:v==null?void 0:v.truthyLabel,falsyLabel:v==null?void 0:v.falsyLabel,timezone:s}),[e,t,f,Z,C,O,v,s,T]),ee=of(e.coverageTerms??[],i.coverageTerms??{},v==null?void 0:v.coverageTerms);X.definitions={...X.definitions,...(e==null?void 0:e.coverageTerms)&&!b&&{coverageTerms:ee}},X.properties={...m?{}:X.properties,...(e==null?void 0:e.coverageTerms)&&!b&&!m&&{coverageTerms:{title:(v==null?void 0:v.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const te=L=>{L.preventDefault(),A||I(!0);const E=lf.validate(X,V);if(p&&!E)return;let _=ox(V,["coverageTerms"]);Z&&(_=_$(_,O,x.locator));const M=DLe({element:x,data:_??{},coverageTerms:V.coverageTerms}),z=Qp.parse(M);o&&o(z)},de=Ad(X),G=de.elements.find(L=>L.scope==="#/properties/coverageTerms");de.elements=de.elements.filter(L=>L.scope!=="#/properties/default"&&L.scope!=="#/properties/advanced"&&L.scope!=="#/properties/coverageTerms"),Array.isArray(e==null?void 0:e.coverageTerms)&&(e==null?void 0:e.coverageTerms.length)>0&&G&&de.elements.push(G);const N=r||c,B=g.useMemo(()=>Yn(ln,N),[N]);return D.jsx(wa.Provider,{value:B,children:D.jsxs("form",{onSubmit:te,id:y,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:lf,uischema:de,cells:yn,renderers:bn,data:V,readonly:N,onChange:L=>{const{data:E}=L;k(E),j(void 0)},i18n:{translateError:Hn},schema:X,validationMode:p&&A?"ValidateAndShow":"NoValidation"}),!d&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:r||c,children:h??"Update"})]})})};fF.displayName="ElementForm";const BZe=(e,t,r)=>{const o=["-"],i=Object.keys(e.delinquencyPlans??{}),s=i.length?i:o,l=Object.keys(e.autoRenewalPlans),c=l.length?l:o;return{Advanced:{title:"",type:"object",definitions:{},required:[],properties:{billingLevel:{type:"string",enum:["account","inherit","policy"],title:(r==null?void 0:r.billingLevel)??"Billing Level"},billingTrigger:{type:"string",enum:["accept","issue"],title:(r==null?void 0:r.billingTrigger)??"Billing Trigger"},durationBasis:{type:"string",enum:["years","months","weeks","days","hours"],title:(r==null?void 0:r.durationBasis)??"Duration Basis",readOnly:t},delinquencyPlanName:{type:"string",title:(r==null?void 0:r.delinquencyPlanName)??"Delinquency Plan",enum:s,readOnly:i.length===0},autoRenewalPlanName:{type:"string",title:(r==null?void 0:r.autoRenewalPlanName)??"Auto Renewal Plan",enum:c,readOnly:l.length===0}}}}},MZe=(e,t)=>({Default:{title:"",type:"object",definitions:{},required:[],properties:{startTime:{title:(t==null?void 0:t.startTime)??"Effective Date",type:"string",format:"date-time",timezone:e},endTime:{title:(t==null?void 0:t.endTime)??"Expiration Date",type:"string",format:"date-time",timezone:e},currency:{type:"string",enum:zs.options,title:(t==null?void 0:t.currency)??"Currency"},timezone:{type:"string",enum:_D.options,title:(t==null?void 0:t.timezone)??"Timezone"}}}}),Kh=new ya({allErrors:!0});sn(Kh),va(Kh),cn(Kh);const pF=({policy:e,segment:t,dataModel:r,hideAllFields:o=!1,id:i,titles:s={}})=>{const l=g.useMemo(()=>Tt(r.products,e.productName,void 0),[r,e.productName]),c=r.dataTypes,u=t.element,d=g.useMemo(()=>ITe(e,l??{},u,r),[e,l,u,r]),f=en({data:(l==null?void 0:l.data)??{},dataTypes:c,scope:["P"],element:u,ignoreConstraints:!0,rootDisplayName:s.formTitle,truthyLabel:s.truthyLabel,falsyLabel:s.falsyLabel,timezone:e.timezone??ai()}),p=of((l==null?void 0:l.coverageTerms)??[],r.coverageTerms??{},s==null?void 0:s.coverageTerms);f.definitions={...f.definitions,...!o&&MZe(e.timezone??ai(),s),...!o&&BZe(r,!0,s),...!o&&(l==null?void 0:l.coverageTerms)&&{coverageTerms:p}},f.properties={...f.properties,...!o&&{default:{title:(s==null?void 0:s.details)??"Details",default:{},$ref:"#/definitions/Default"}},...!o&&{advanced:{title:(s==null?void 0:s.seeAdvancedDetails)??"See Advanced Details",default:{},$ref:"#/definitions/Advanced"}},...(l==null?void 0:l.coverageTerms)&&!o&&{coverageTerms:{title:(s==null?void 0:s.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const m=Ad(f),b=m.elements.find($=>$.scope==="#/properties/default"),h=m.elements.find($=>$.scope==="#/properties/advanced"),y=m.elements.find($=>$.scope==="#/properties/coverageTerms");if(m.elements=m.elements.filter($=>$.scope!=="#/properties/default"&&$.scope!=="#/properties/advanced"&&$.scope!=="#/properties/coverageTerms"),h){const $={type:"CollapsingVerticalLayout",label:(s==null?void 0:s.seeAdvancedDetails)??"See Advanced Details",elements:[h]};m.elements.unshift($)}b&&m.elements.unshift(b),Array.isArray(l==null?void 0:l.coverageTerms)&&(l==null?void 0:l.coverageTerms.length)>0&&y&&m.elements.push(y);const v=g.useMemo(()=>Yn(ln,!0),[]);return D.jsx(wa.Provider,{value:v,children:D.jsx("form",{id:i,className:"@container flex w-full flex-col gap-2",children:D.jsx(za,{ajv:Kh,uischema:m,cells:yn,renderers:bn,data:d,readonly:!0,schema:f,validationMode:"NoValidation"})})})};pF.displayName="PolicyForm";const cf=new ya({allErrors:!0});sn(cf),va(cf),cn(cf);const mF=({accountLocator:e,invoiceLocator:t,balance:r,currency:o,validateOnSubmit:i=!1,hideSubmitButton:s=!1,submitButtonText:l,handleSubmit:c,isSubmitting:u,disabled:d,id:f,titles:p,invoiceBalance:m})=>{const[b,h]=g.useState(!1),[y,v]=g.useState({default:{balance:r,invoiceBalance:m}}),$={title:"",type:"object",definitions:{},required:["amount"],properties:{invoiceBalance:{title:(p==null?void 0:p.invoiceBalance)||"Invoice Balance",type:"number",currency:o,readOnly:!0},balance:{title:(p==null?void 0:p.balance)||"Balance",type:"number",currency:o,readOnly:!0},amount:{title:(p==null?void 0:p.amountToApply)||"Amount to Apply",type:"number",exclusiveMinimum:0,maximum:r,currency:o}}},{schema:C,uiSchema:T}=af({dataModelSchema:{},defaultFieldsSchema:$}),x=d||u,w=g.useMemo(()=>Yn(ln,!0),[]),S=P=>{P.preventDefault(),b||h(!0);const A=cf.validate(C,y);if(i&&!A)return;const I={accountLocator:e,amount:y.default.amount??0,currency:o,sources:[{containerLocator:e,containerType:"account"}],targets:[{containerLocator:t,containerType:G0.enum.invoice}]};return c(I),y};return D.jsx(wa.Provider,{value:w,children:D.jsxs("form",{id:f,onSubmit:S,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:cf,uischema:T,cells:yn,renderers:bn,data:y,readonly:x,schema:C,onChange:({data:P})=>{v(P)},i18n:{translateError:Hn},validationMode:i&&b?"ValidateAndShow":"NoValidation"}),!s&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:x,children:l??"Update"})]})})};mF.displayName="ExistingPaymentForm";var FZe=xw(),RZe=FZe(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),VZe=RZe;const gF=We(VZe),GZe=({payments:e,currency:t,titles:r})=>({title:"",type:"object",definitions:{},required:["amount","type"],properties:{invoiceBalance:{title:(r==null?void 0:r.invoiceBalance)||"Invoice Balance",type:"number",currency:t,readOnly:!0},amount:{title:(r==null?void 0:r.amount)||"Amount",type:"number",exclusiveMinimum:0,currency:t},type:{title:(r==null?void 0:r.type)||"Type",oneOf:Object.entries(e).map(([o,i])=>({const:o,title:i.displayName||o}))},transactionMethod:{title:(r==null?void 0:r.transactionMethod)||"Method",oneOf:B3.options.map(o=>{var i;return{const:o,title:((i=r==null?void 0:r.transactionMethods)==null?void 0:i[o])||gF(o)}})},transactionNumber:{title:(r==null?void 0:r.transactionNumber)||"Transaction Id",type:"string"}}}),uf=new ya({allErrors:!0});sn(uf),va(uf),cn(uf);const zZe=e=>({data:{},default:{invoiceBalance:e,amount:e}}),hF=({accountLocator:e,invoiceLocator:t,currency:r,validateOnSubmit:o=!1,hideSubmitButton:i=!1,submitButtonText:s,handleSubmit:l,isSubmitting:c,disabled:u,dataModel:d,id:f,titles:p,invoiceBalance:m})=>{const[b,h]=g.useState(!1),y=d.dataTypes,[v,$]=g.useState(zZe(m)),C=GZe({payments:d.payments??{},currency:r,titles:p}),T=g.useMemo(()=>{var O,j;if(!v.default.type)return{};const I=((j=(O=d.payments)==null?void 0:O[v.default.type])==null?void 0:j.data)??{};return en({data:I,dataTypes:y,scope:["P"],rootDisplayName:(p==null?void 0:p.formTitle)||"",truthyLabel:p==null?void 0:p.truthyLabel,falsyLabel:p==null?void 0:p.falsyLabel})},[d,y,p==null?void 0:p.formTitle,v.default.type,p==null?void 0:p.truthyLabel,p==null?void 0:p.falsyLabel]),{schema:x,uiSchema:w}=af({dataModelSchema:T,defaultFieldsSchema:C}),S=u||c,P=g.useMemo(()=>Yn(ln,!0),[]),A=I=>{I.preventDefault(),b||h(!0);const O=uf.validate(x,v);if(o&&!O)return;const j={amount:v.default.amount??0,type:v.default.type??"",useDefaultFinancialInstrument:!1,currency:r,data:{...v.data},targets:[{containerLocator:t,containerType:G0.enum.invoice}],accountLocator:e,transactionMethod:v.default.transactionMethod,transactionNumber:v.default.transactionNumber};return l(j),v};return D.jsx(wa.Provider,{value:P,children:D.jsxs("form",{id:f,onSubmit:A,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:uf,uischema:w,cells:yn,renderers:bn,data:v,readonly:S,schema:x,onChange:({data:I})=>{I.default.type!==v.default.type?$({...I,data:{}}):$(I)},i18n:{translateError:Hn},validationMode:o&&b?"ValidateAndShow":"NoValidation"}),!i&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:S,children:s??"Update"})]})})};hF.displayName="NewPaymentForm";const df=new ya({allErrors:!0});sn(df),va(df),cn(df);const bF=({amount:e,reversalTypes:t,currency:r,validateOnSubmit:o=!1,hideSubmitButton:i=!1,submitButtonText:s,handleSubmit:l,isSubmitting:c,disabled:u,id:d,titles:f})=>{const[p,m]=g.useState(!1),[b,h]=g.useState({default:{amount:e,reversalType:""}}),y=Object.entries(t??{}).flatMap(([S,P])=>P.creditType!==A3.enum.payment?{const:S,title:S}:[]),v={title:"",type:"object",definitions:{},required:["reversalType"],properties:{amount:{title:(f==null?void 0:f.amountToReverse)||"Amount to Reverse",type:"number",exclusiveMinimum:0,currency:r,readOnly:!0},reversalType:{title:(f==null?void 0:f.reversalType)||"Reason for Reverse?",type:"string",oneOf:y}}},{schema:$,uiSchema:C}=af({dataModelSchema:{},defaultFieldsSchema:v}),T=u||c,x=g.useMemo(()=>Yn(ln,!0),[]),w=S=>{S.preventDefault(),p||m(!0);const P=df.validate($,b);if(o&&!P)return;const A={reversalType:b.default.reversalType};return l(A),b};return D.jsx(wa.Provider,{value:x,children:D.jsxs("form",{id:d,onSubmit:w,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:df,uischema:C,cells:yn,renderers:bn,data:b,readonly:T,schema:$,onChange:({data:S})=>{h(S)},i18n:{translateError:Hn},validationMode:o&&p?"ValidateAndShow":"NoValidation"}),!i&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:T,children:s??"Update"})]})})};bF.displayName="ReversePaymentForm";const ff=new ya({allErrors:!0});sn(ff),va(ff),cn(ff);const yF=({elementResponse:e,handleSubmit:t,paramsChangeInstruction:r,preventFormResetOnDisabled:o=!0,disabled:i=!1,hideSubmitButton:s=!1,validateOnSubmit:l=!1,isSubmitting:c=!1,submitButtonText:u,id:d,dataTypes:f,productModel:p,timezone:m,coverageTerms:b,titles:h={},getEvaluatedConstraints:y,dependencyMap:v})=>{const[$,C]=g.useState(e),[T,x]=g.useState(void 0),w=v&&y,[S,P]=g.useState(T1({elementResponse:e,coverageTermsDataModel:b,coverageTerms:p.coverageTerms??[]})),A=g.useMemo(()=>w?E$({data:S,locator:e.staticLocator,dependencyMap:v}):{},[w,S,v,e.staticLocator]);g.useEffect(()=>{(async()=>{const te=e;if(A[te.staticLocator]&&Object.keys(A[te.staticLocator]).length>0&&y&&!T){const de=await y(A,te.tenantLocator??"",te.staticLocator);x(de)}})()},[e,T,A,y]),g.useEffect(()=>{yi(e,$)||(C(e),P(T1({elementResponse:e,coverageTermsDataModel:b,coverageTerms:p.coverageTerms??[]})))},[b,e,$,p.coverageTerms]),g.useEffect(()=>{i&&!o&&P(T1({elementResponse:e,coverageTermsDataModel:b,coverageTerms:p.coverageTerms??[]}))},[b,i,e,r,o,p.coverageTerms]);const[I,O]=g.useState(!1),j=i||c,V=g.useMemo(()=>en({data:p.data??{},dataTypes:f,scope:["P"],evaluatedConstraints:T,transactionElement:e,rootDisplayName:p.displayName??(h==null?void 0:h.formTitle)??"Transaction",truthyLabel:h==null?void 0:h.truthyLabel,falsyLabel:h==null?void 0:h.falsyLabel,timezone:m}),[f,e,v,T,p.data,p.displayName,m,h==null?void 0:h.formTitle,h==null?void 0:h.truthyLabel,h==null?void 0:h.falsyLabel]),k=of(p.coverageTerms??[],b??{},h==null?void 0:h.coverageTerms);V.definitions={...V.definitions,...p.coverageTerms&&{coverageTerms:k}},V.properties={...V.properties,...p.coverageTerms&&{coverageTerms:{title:(h==null?void 0:h.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const Z=Ad(V),U=g.useMemo(()=>Yn(ln,j),[j]),X=ee=>{ee.preventDefault(),I||O(!0);const te=ff.validate(V,S);if(l&&!te)return;let de=ox(S,["coverageTerms"]);w&&(de=_$(de,T,e.locator));const G=mDe({data:de,coverageTerms:S.coverageTerms,element:e,timezone:p.defaultTimeZone??"UTC"});return t(G),S};return D.jsx(wa.Provider,{value:U,children:D.jsxs("form",{id:d,onSubmit:X,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:ff,uischema:Z,cells:yn,renderers:bn,data:S,readonly:j,i18n:{translateError:Hn},schema:V,onChange:({data:ee})=>{P(ee),x(void 0)},validationMode:l&&I?"ValidateAndShow":"NoValidation"}),!s&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:j,children:u??"Update"})]})})};yF.displayName="InitializedTransactionForm";const ZZe={Default:{title:"",type:"object",definitions:{},required:[],properties:{effectiveTime:{title:"Effective Time",type:"string",format:"date"},newPolicyEndDate:{title:"New Policy End Date",type:"string",format:"date"}}}},pf=new ya({allErrors:!0});sn(pf),va(pf),cn(pf);const vF=({transactionSnapshot:e,handleSubmit:t,paramsChangeInstruction:r,modifyChangeInstruction:o,preventFormResetOnDisabled:i=!0,disabled:s=!1,hideSubmitButton:l=!1,validateOnSubmit:c=!1,isSubmitting:u=!1,submitButtonText:d,id:f,dataTypes:p,productModel:m,coverageTerms:b,titles:h={}})=>{const[y,v]=g.useState(E1({paramsChangeInstruction:r,modifyChangeInstruction:o,transactionSnapshot:e,coverageTermsDataModel:b,coverageTerms:m.coverageTerms??[],timezone:m.defaultTimeZone??"UTC"}));g.useEffect(()=>{v(E1({paramsChangeInstruction:r,modifyChangeInstruction:o,transactionSnapshot:e,coverageTermsDataModel:b,coverageTerms:m.coverageTerms??[],timezone:m.defaultTimeZone??"UTC"}))},[b,o,r,e,m.coverageTerms,m.defaultTimeZone]),g.useEffect(()=>{s&&!i&&v(E1({paramsChangeInstruction:r,modifyChangeInstruction:o,transactionSnapshot:e,coverageTermsDataModel:b,coverageTerms:m.coverageTerms??[],timezone:m.defaultTimeZone??"UTC"}))},[b,s,o,r,i,e,m.coverageTerms,m.defaultTimeZone]);const[$,C]=g.useState(!1),T=s||u,x=g.useMemo(()=>en({data:m.data??{},dataTypes:p,scope:["P"],rootDisplayName:m.displayName??(h==null?void 0:h.formTitle)??"Transaction",truthyLabel:h==null?void 0:h.truthyLabel,falsyLabel:h==null?void 0:h.falsyLabel}),[p,m.data,m.displayName,h==null?void 0:h.formTitle,h==null?void 0:h.truthyLabel,h==null?void 0:h.falsyLabel]),w=of(m.coverageTerms??[],b??{},h==null?void 0:h.coverageTerms);x.definitions={...x.definitions,...ZZe,...m.coverageTerms&&{coverageTerms:w}},x.properties={...x.properties,default:{title:"Details",default:{},$ref:"#/definitions/Default"},...m.coverageTerms&&{coverageTerms:{title:(h==null?void 0:h.coverageTerms)??"Coverage Terms",default:{},$ref:"#/definitions/coverageTerms"}}};const S=xi(x),P=S.elements.find(O=>O.scope==="#/properties/default");S.elements=S.elements.filter(O=>O.scope!=="#/properties/default"),P&&S.elements.unshift(P);const A=g.useMemo(()=>Yn(ln,T),[T]),I=O=>{O.preventDefault(),$||C(!0);const j=pf.validate(x,y);if(c&&!j)return;const V=ALe({data:y,timezone:m.defaultTimeZone??"UTC"}),k=wLe({data:y,transactionSnapshot:e,staticLocator:e.segment.element.staticLocator});return t([V,k]),y};return D.jsx(wa.Provider,{value:A,children:D.jsxs("form",{id:f,onSubmit:I,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:pf,uischema:S,cells:yn,renderers:bn,data:y,readonly:T,i18n:{translateError:Hn},schema:x,onChange:({data:O})=>v(O),validationMode:c&&$?"ValidateAndShow":"NoValidation"}),!l&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:T,children:d??"Update"})]})})};vF.displayName="DraftTransactionForm";const WZe=({disbursements:e,accountBalance:t,currency:r,titles:o})=>({title:"",type:"object",definitions:{},required:["amount","type"],properties:{amount:{title:(o==null?void 0:o.amount)||"Amount",type:"number",exclusiveMinimum:0,currency:r,maximum:t},type:{title:(o==null?void 0:o.type)||"Type",oneOf:Object.entries(e).map(([i,s])=>({const:i,title:s.displayName||i}))},transactionMethod:{title:(o==null?void 0:o.transactionMethod)||"Method",oneOf:Rp.options.map(i=>{var s;return{const:i,title:((s=o==null?void 0:o.transactionMethods)==null?void 0:s[i])||gF(i)}})},transactionNumber:{title:(o==null?void 0:o.transactionNumber)||"Transaction Id",type:"string"}}}),mf=new ya({allErrors:!0});sn(mf),va(mf),cn(mf);const qZe=()=>({data:{},default:{}}),$F=({accountLocator:e,accountBalance:t,currency:r,validateOnSubmit:o=!1,hideSubmitButton:i=!1,submitButtonText:s,handleSubmit:l,isSubmitting:c,disabled:u,dataModel:d,id:f,titles:p})=>{const[m,b]=g.useState(!1),h=d.dataTypes,[y,v]=g.useState(qZe()),$=WZe({disbursements:d.disbursements??{},accountBalance:t,currency:r,titles:p}),C=g.useMemo(()=>{var I,O;if(!y.default.type)return{};const A=((O=(I=d.disbursements)==null?void 0:I[y.default.type])==null?void 0:O.data)??{};return en({data:A,dataTypes:h,scope:["P"],rootDisplayName:(p==null?void 0:p.formTitle)||"",truthyLabel:p==null?void 0:p.truthyLabel,falsyLabel:p==null?void 0:p.falsyLabel})},[d,h,p==null?void 0:p.formTitle,p==null?void 0:p.truthyLabel,p==null?void 0:p.falsyLabel,y.default.type]),{schema:T,uiSchema:x}=af({dataModelSchema:C,defaultFieldsSchema:$}),w=u||c,S=g.useMemo(()=>Yn(ln,!0),[]),P=A=>{A.preventDefault(),m||b(!0);const I=mf.validate(T,y);if(o&&!I)return;const O={amount:y.default.amount??0,type:y.default.type??"",useDefaultFinancialInstrument:!1,currency:r,data:{...y.data},sources:[{containerLocator:e,containerType:LD.enum.account}],accountLocator:e,transactionMethod:y.default.transactionMethod,transactionNumber:y.default.transactionNumber};return l(O),y};return D.jsx(wa.Provider,{value:S,children:D.jsxs("form",{id:f,onSubmit:P,className:"@container flex w-full flex-col gap-2",children:[D.jsx(za,{ajv:mf,uischema:x,cells:yn,renderers:bn,data:y,readonly:w,schema:T,onChange:({data:A})=>{A.default.type!==y.default.type?v({...A,data:{}}):v(A)},i18n:{translateError:Hn},validationMode:o&&m?"ValidateAndShow":"NoValidation"}),!i&&D.jsx(nr,{type:"submit",variant:"default",className:"mt-4 self-start",disabled:w,children:s??"Update"})]})})};$F.displayName="NewDisbursementForm",mt.AccountForm=uF,mt.DraftTransactionForm=vF,mt.ElementForm=fF,mt.ExistingPaymentForm=mF,mt.InitializedTransactionForm=yF,mt.NewDisbursementForm=$F,mt.NewPaymentForm=hF,mt.PolicyForm=pF,mt.QuoteForm=dF,mt.ReversePaymentForm=bF,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})});
137
137
  //# sourceMappingURL=index.umd.js.map